Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2019-11043: PHP-FPM Path-Handling Underflow Remote Code Execution

Published Oct 28, 2019 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days10 mentions · peak 4 in a dayToday
CVSS9.8Critical · v3.1
EPSS99.8%100th percentile
CISA KEVYesAdded Mar 25, 2022
In the wildActivePer CISA KEV
Vendors
Debian ProjectRed HatFedora ProjectPHP GroupTenableCanonical
IdentifiersCVE-2019-11043CWE-787 · Out-of-bounds Write

CVE-2019-11043 is a memory-corruption vulnerability in PHP-FPM path handling that permits remote code execution in certain NGINX/FastCGI configurations. Insufficient path validation in init_request_info() can cause an underflow involving env_path_info and an out-of-bounds write into memory reserved for FastCGI protocol data. Specially crafted requests can trigger memory corruption, PHP-FPM crashes, or arbitrary code execution. Affected upstream releases include PHP 7.1.x before 7.1.33, 7.2.x before 7.2.24, and 7.3.x before 7.3.11; vendor advisories also identify affected older distribution-maintained branches.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An unauthenticated remote attacker can potentially execute arbitrary code in the affected PHP-FPM process context, compromising the confidentiality and integrity of accessible application data. Exploitation can also corrupt memory or crash PHP-FPM, causing denial of service. Successful code execution does not inherently confer root privileges; access depends on the worker's permissions and deployment isolation.

Mitigation

If you can’t patch tonight, do this now.

As an interim NGINX configuration workaround, change every relevant PATH_INFO assignment to 'fastcgi_param PATH_INFO $fastcgi_path_info if_not_empty;' and restart NGINX. This prevents forwarding an empty PATH_INFO value while permitting continued PATH_INFO use. Apply the PHP security update rather than relying permanently on this workaround.

Remediation

Patch, then assume compromise.

Install vendor-supported PHP security updates addressing CVE-2019-11043. The upstream fixes are PHP 7.1.33, 7.2.24, and 7.3.11 for their respective branches. Distribution packages may contain backported fixes despite retaining earlier upstream version numbers, so verify the vendor's fixed package release. Examples include Debian 9 php7.0 version 7.0.33-0+deb9u6 and Debian 10 php7.3 version 7.3.11-1~deb10u1. Synology fixed packages are PHP 7.2 version 7.2.24-0006 and PHP 7.3 version 7.3.11-0004 or later. Restart affected services after installation as directed by the vendor; the cited Red Hat advisories explicitly require restarting httpd.

Public exploits

Exploits

11 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
php_fpm_rce.rbThis repository contains a single Metasploit module (modules/exploits/multi/http/php_fpm_rce.rb) that exploits CVE-2019-11043, a remote code execution vulnerability in PHP-FPM when used with Nginx and certain configurations. The exploit works by sending specially crafted HTTP requests to a PHP page (default: /index.php) on the target server, manipulating PHP INI settings to create a file on disk that enables code execution via query string parameters. The module automatically detects the required parameters to trigger the vulnerability, executes the payload (either PHP code or shell commands), and performs cleanup by removing the created file and killing PHP-FPM worker processes. The exploit is weaponized, supporting customizable payloads and full integration with the Metasploit framework. The main attack vector is network-based, targeting HTTP endpoints exposed by vulnerable Nginx + PHP-FPM configurations. The only fingerprintable endpoints are the HTTP path to the PHP page (default /index.php) and the temporary file created in /tmp on the target system.Disclosed Oct 22, 2019 · Framework: metasploit · ruby · networkWeaponizedphuip-fpizdamThis repository contains a Go-based exploit for CVE-2019-11043, a critical vulnerability in PHP-FPM when used with nginx under certain configurations. The exploit targets servers running PHP 7+ with nginx, where the nginx configuration forwards PHP requests to PHP-FPM without proper file existence checks and with specific fastcgi_param settings. The exploit works by manipulating the PATH_INFO and other FastCGI parameters to trigger a buffer underflow, allowing the attacker to set arbitrary php.ini values and ultimately achieve remote code execution (RCE). The repository is structured as follows: - Main exploit logic is implemented in Go files (main.go, attack.go, detect.go, detect_methods.go, phpini.go, requester.go, consts.go). - The exploit detects vulnerable configurations, determines the required parameters (QSL and Pisos), and then performs the attack by setting malicious php.ini values and executing arbitrary shell commands via HTTP requests. - A 'reproducer' directory contains Docker resources (Dockerfile, nginx and php-fpm configs, entrypoint script, and a test PHP file) to set up a local vulnerable environment for testing the exploit. The exploit is operational and provides full RCE if the target is vulnerable. It does not belong to a framework and is a standalone tool. The main entry point is main.go, which provides a CLI for running the exploit against a target URL. The README.md provides detailed usage instructions, configuration requirements, and reproduction steps. Notable endpoints include the test PHP script, temporary files used for payload delivery, and the FastCGI endpoint for PHP-FPM.neex · Disclosed Sep 23, 2019 · go · bash · networkOperationalCVE-2019-11043This repository contains a Python exploit script (cve_2019_11043.py) and a README for CVE-2019-11043, a critical vulnerability in certain PHP-FPM configurations behind Nginx. The exploit targets PHP versions 7.1.x < 7.1.33, 7.2.x < 7.2.24, and 7.3.x < 7.3.11, where improper handling of crafted HTTP requests allows attackers to set arbitrary PHP configuration directives via the fastcgi interface. The script first probes the target to determine if it is vulnerable by manipulating HTTP headers and query string lengths, then executes a series of payloads to set PHP directives that enable remote code execution. The attacker can then execute arbitrary system commands by passing them in the 'a' GET parameter. The README provides usage instructions and the required Nginx configuration for the vulnerability to be exploitable. The main attack vector is network-based, targeting web servers with vulnerable PHP-FPM configurations. The script is operational and provides a working exploit for remote code execution.0th3rs-Security-Team · Disclosed Nov 6, 2019 · python · networkOperationalCVE-2019-11043This repository provides a working proof-of-concept exploit for CVE-2019-11043, a critical vulnerability in PHP-FPM when used with NGINX under certain configurations. The exploit is implemented in Python (exploit.py) and automates the process of discovering vulnerable query string lengths and header values to trigger a buffer overflow in the FastCGI protocol handling. This allows the attacker to overwrite FastCGI variables, inject malicious PHP configuration directives, and ultimately achieve remote code execution (RCE) on the target server. The repository includes a Docker-based test environment with NGINX and PHP-FPM configured to be vulnerable, as well as a minimal PHP script (index.php) for demonstration. The main attack vector is network-based, targeting HTTP endpoints exposed by the web server. The exploit is operational and demonstrates full RCE, but is not weaponized for mass exploitation. The README provides detailed background, setup instructions, and analysis of the vulnerability and exploitation process.kriskhub · Disclosed May 5, 2020 · python · dockerfile · networkOperationalCVE-2019-11043Repository contains 2 files: a small Python exploit script and a README describing CVE-2019-11043. The main code file, 'CVE-2019-11043 .py', is a minimal interactive proof-of-concept that imports requests, accepts a target URL from the command line, and enters a loop prompting for commands. For each command, it sends an HTTP GET request to the supplied target with a crafted header named 'User-Agentt' containing the string "zerodiumsystem(' <cmd> ');" and then prints the beginning of the response body up to the first '<' character. The intended purpose is to provide a rudimentary remote shell against a web server believed to be vulnerable to CVE-2019-11043. Notable limitations: the script does not implement the actual request shaping, path/query manipulation, or environment discovery normally associated with reliable exploitation of CVE-2019-11043; it performs no vulnerability check, no target fingerprinting, and no error handling beyond basic argument presence. Despite these shortcomings, it is clearly intended as an exploit rather than a detector, because it accepts arbitrary commands and attempts to execute them remotely. The only fingerprintable network target is the operator-provided URL; no hardcoded IPs, domains, or external callbacks are present.bayazid-bit · Disclosed Jun 19, 2025 · python · markdown · web · networkOperationalCVE-2019-11043-This repository contains a single Python script named 'CVE-2019-11043 .py' that exploits the CVE-2019-11043 vulnerability in PHP-FPM when used with certain Nginx configurations. The script provides an interactive shell-like interface, allowing the user to send arbitrary commands to the target server. It does this by sending HTTP GET requests to the user-supplied target URL, with a specially crafted 'User-Agentt' header containing PHP code to execute the specified command. The script prints the output of the command execution, up to the first '<' character in the response. The exploit requires the attacker to know the vulnerable target URL. The repository is minimal, containing only this exploit script, and is written in Python. No hardcoded endpoints are present; the target is supplied at runtime.bayazid-bit · Disclosed Jun 19, 2025 · python · networkOperationalphuip-fpizdamThis repository contains a Go-based exploit for CVE-2019-11043, a critical vulnerability in PHP-FPM when used with nginx under certain configurations. The exploit targets servers running PHP 7+ with nginx, where the nginx configuration forwards PHP files to php-fpm without proper file existence checks and allows manipulation of the PATH_INFO variable. The exploit works by sending specially crafted HTTP requests to the target .php file, manipulating PHP-FPM settings to allow arbitrary code execution. The main logic is implemented in Go files (main.go, attack.go, detect.go, phpini.go, requester.go), with supporting files for detection and configuration. The repository also includes a Docker-based test environment (reproducer directory) to facilitate local testing and reproduction of the vulnerability. The exploit, once successful, allows the attacker to execute arbitrary shell commands on the target server by appending a query string to the PHP script URL. The code is operational and provides both detection and exploitation capabilities, with clear instructions and examples in the README. Notable endpoints include the test PHP script, temporary files used for code injection, and the FastCGI endpoint for PHP-FPM.CodeHex083 · Disclosed Oct 24, 2025 · go · bash · networkOperationalcve-2019-11043.pyThis repository contains a Python port of the ExploitDB PoC for CVE-2019-11043, a critical vulnerability in PHP-FPM when used with Nginx. The main file, cve201911043.py, is a standalone exploit script that automates the process of detecting vulnerable parameters, crafting malicious HTTP requests, and achieving remote code execution (RCE) on the target server. The exploit works by manipulating the request URI and headers to inject PHP configuration directives and ultimately execute arbitrary shell commands. The script includes logic for writing a PHP payload to the web root, executing test commands (such as 'whoami'), and cleaning up after exploitation by deleting the payload and reverting PHP settings. The default target is set to 127.0.0.1:80/index.php, but this can be modified. The exploit is operational and provides full RCE if the target is vulnerable. The repository is structured simply, with a single Python exploit file, a README, LICENSE, and .gitignore.gon905332-jpg · Disclosed Dec 12, 2025 · python · networkOperationalCVE-2019-11043This repository provides resources and instructions for exploiting CVE-2019-11043, a remote code execution vulnerability affecting PHP-FPM when used with Nginx under certain configurations. The main exploit is not included directly but references the 'phuip-fpizdam' tool (written in Go) for exploitation, and provides a Python script ('php-rce-check.py') to check for vulnerability. The README details installation steps for the exploit tool, Docker-based vulnerable environment setup, and example usage against a test server. The Python script sends crafted HTTP requests to detect vulnerable servers by observing HTTP response codes. The repository targets Nginx servers running PHP-FPM (notably PHP 7.2.10 and Nginx 1.19.2 as per examples) and provides configuration and endpoint details relevant to the exploit. No weaponized or framework-based exploit is present; the repository serves as a proof-of-concept and vulnerability checker.jas502n · Disclosed Oct 23, 2019 · python · networkPoCCVE-2019-11043This repository provides a Python proof-of-concept exploit for CVE-2019-11043, a vulnerability in PHP-FPM when used with nginx. The exploit (exploit.py) automates the process of discovering the correct query string length and header value length to trigger the vulnerability, then injects malicious PHP settings to enable remote code execution (RCE). The payload allows the attacker to execute arbitrary shell commands on the target server via HTTP requests. The repository includes a docker-compose setup for a vulnerable nginx + PHP-FPM environment and a minimal PHP file for testing. The exploit is network-based and targets web servers running vulnerable configurations. The code is a functional PoC and not weaponized, but demonstrates the full RCE chain.theMiddleBlue · Disclosed Oct 28, 2019 · python · php · networkPoCCVE-2019-11043This repository contains a proof-of-concept exploit for CVE-2019-11043, a remote code execution vulnerability in certain versions of PHP-FPM. The main file, CVE-2019-11043.py, is a Python script that automates the process of discovering vulnerable URL and header lengths by sending crafted HTTP requests to a target PHP-FPM server. If the server is vulnerable, the script manipulates PHP configuration directives via the PHP_VALUE mechanism, ultimately enabling remote code execution. The script is a POC and requires the user to specify the correct target URL. The README.md provides a brief description of the exploit's purpose. No hardcoded credentials or additional endpoints are present; the only fingerprintable endpoint is the default target URL, which should be customized by the user.corifeo · Disclosed Jul 13, 2020 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
PHP GroupPhpapplication
Red HatEnterprise Linux Desktopoperating_system
Red HatEnterprise Linux Eusoperating_system
Red HatEnterprise Linux Eus Compute Nodeoperating_system
Red HatEnterprise Linux For Arm 64operating_system
Red HatEnterprise Linux For Arm 64 Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systemsoperating_system
Red HatEnterprise Linux For Ibm Z Systems Eusoperating_system
Red HatEnterprise Linux For Power Big Endianoperating_system
Red HatEnterprise Linux For Power Big Endian Eusoperating_system
Red HatEnterprise Linux For Power Little Endianoperating_system
Red HatEnterprise Linux For Power Little Endian Eusoperating_system
Red HatEnterprise Linux For Scientific Computingoperating_system
Red HatEnterprise Linux Serveroperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Workstationoperating_system
Red HatRed Hat Enterprise Linuxoperating_system
Red HatSoftware Collectionsapplication
TenableTenable.Scapplication
FAQ

Frequently asked questions

Is CVE-2019-11043 exploited in the wild?
Yes. As of Nov 11, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
Is there a public exploit for CVE-2019-11043?
Yes. Mallory tracks 11 public exploits or proofs of concept for CVE-2019-11043, the earliest disclosed Sep 23, 2019.
Is there a patch for CVE-2019-11043?
Install vendor-supported PHP security updates addressing CVE-2019-11043. The upstream fixes are PHP 7.1.33, 7.2.24, and 7.3.11 for their respective branches.
What products are affected by CVE-2019-11043?
PHP Group Php, Debian Project Debian Linux, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Eus, Red Hat Enterprise Linux Eus Compute Node, and at least 18 more.
How severe is CVE-2019-11043?
CVE-2019-11043 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.8% (100th percentile) as of Nov 11, 2026.
Activity feed

Recent activity

43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 10, 2026Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: ph... | Tenable®A critical PHP-FPM buffer overwrite vulnerability that can permit unauthenticated remote code execution in certain configurations. The advisory concerns affected PHP packages on Unity Linux 20.1050a, 20.1060a, and 20.1070a. The plugin reports a CVSS v3 score of 9.8, available exploits, and a CISA Known Exploited Vulnerability designation. Detection relies on the application's self-reported version rather than testing exploitation.Read more ↗tenable nessus pluginsNews · Nov 10, 2026Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: ph... | Tenable®A critical PHP-FPM buffer overwrite vulnerability that can allow unauthenticated remote code execution under certain configurations. The Unity Linux advisory identifies affected PHP packages and recommends updating them. The plugin reports a CVSS v3 score of 9.8; its detection relies on the application's self-reported version rather than testing exploitation.Read more ↗tenable nessus pluginsNews · Nov 10, 2026Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: ph... | Tenable®A PHP-FPM buffer overwrite vulnerability that can permit remote code execution under certain configurations. The advisory identifies affected PHP packages on Unity Linux 20.1050a, 20.1060a, and 20.1070a. The plugin reports a critical CVSS v3 score of 9.8, available exploits, and a CISA Known Exploited Vulnerability due date. Detection relies on the application's reported version rather than direct vulnerability testing.Read more ↗tenable nessus pluginsNews · Nov 10, 2026Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: ph... | Tenable®A critical PHP-FPM out-of-bounds write vulnerability that can permit remote code execution in certain configurations. The advisory concerns affected PHP packages on Unity Linux 20.1050a, 20.1060a, and 20.1070a. The plugin reports a CVSS v3 score of 9.8, available exploits, and a CISA Known Exploited Vulnerability remediation deadline. Nessus identifies exposure from the application's self-reported version rather than testing exploitation.Read more ↗
+30 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.