PHP-FPM PATH_INFO Underflow Enables Remote Code Execution
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 3, 2026

CVE-2019-11043 is a PHP-FPM vulnerability caused by incorrect PATH_INFO handling in fpm_main.c, which can trigger a buffer underflow and permit remote code execution. An attacker can use a crafted URI containing a newline to manipulate FastCGI environment-variable processing and redirect writes within PHP-FPM's CGI environment buffer.
Exploitation is configuration-dependent, affecting deployments that use Nginx fastcgi_split_path_info, forward PATH_INFO to PHP-FPM, enable cgi.fix_pathinfo, and lack—or permit bypass of—a check that the requested PHP file exists. The attack can overwrite a colliding HTTP header as PHP_VALUE, allowing attacker-controlled PHP configuration directives to form an RCE chain; reliability depends on Nginx URI matching, environment-variable ordering, and payload-size constraints.
Why it matters
Summary
CVE-2019-11043 can permit unauthenticated remote code execution on PHP-FPM servers behind vulnerable Nginx FastCGI configurations. Exploitation is configuration-dependent rather than universal, but successful compromise gives an internet-facing attacker the ability to execute PHP code in the affected PHP-FPM worker context.
Affected population and severity
- Affected product: PHP-FPM.
- Exposed deployments: Nginx configurations that use
fastcgi_split_path_info, passPATH_INFOto PHP-FPM, enablecgi.fix_pathinfo, and do not enforce an effective requested-PHP-file existence check. - Common risk condition: removal or bypass of
try_filesor an equivalent validation check from Nginx PHP-FPM configurations. - Business impact: application-data theft or modification, web-shell deployment, credential theft, lateral movement from the web tier, service disruption, and reputational and financial damage.
- Scope: potentially widespread among historically deployed Nginx/PHP-FPM stacks with the affected configuration pattern, but not exploitable in PHP-FPM default configuration.
Exploitation status
- The supplied references describe a practical RCE technique, including configuration-dependent reliability constraints.
- The supplied content does not identify specific victim organizations or confirmed exploitation incidents in the wild.
- Malformed exploit attempts can crash PHP-FPM, creating an availability impact even where reliable code execution is not achieved.


