Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityproof-of-concept-release

PHP-FPM PATH_INFO Underflow Enables Remote Code Execution

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 3, 2026

PHP-FPM PATH_INFO Underflow Enables Remote Code Execution

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events
  1. Reported Oct 29, 20197y ago

    CVE-2019-11043 exploit mechanics and configuration prerequisites detailed

    A technical analysis documented how incorrect PHP-FPM PATH_INFO handling could yield a buffer underflow and environment-buffer corruption, enabling attacker-controlled PHP_VALUE directives and potential RCE. It noted exploitation requires particular non-default Nginx and PHP-FPM configurations and can be mitigated by preventing nonexistent PHP paths from reaching PHP-FPM.

    An analysis and thought about recently PHP-FPM RCE (CVE-2019-11043) | Orange Tsai
  2. Reported Sep 26, 20197y ago

    PHP-FPM env_path_info underflow reported as RCE risk

    A PHP bug report identified an underflow involving env_path_info in fpm_main.c that could lead to remote code execution.

    env_path_info underflow in fpm_main.c can lead to RCE
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Php-Fpm
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.