CVE-2019-11043
KEV ransomware PoC ×3massBuffer Overflow in PHP-FPM Enables Unauthenticated RCE on nginx Stacks
CISA: PHP FastCGI Process Manager (FPM) Buffer Overflow Vulnerability
CVE-2019-11043 is a buffer overflow (CWE-120/CWE-787) in PHP's FastCGI Process Manager (PHP-FPM) affecting PHP 7.1.x before 7.1.33, 7.2.x before 7.2.24, and 7.3.x before 7.3.11. In certain FPM configurations — commonly web servers such as nginx that split PATH_INFO via fastcgi_split_path_info without validating that the requested PHP script exists — an unauthenticated remote attacker can send a crafted request that makes PHP-FPM write past allocated buffers into the space reserved for FCGI protocol data. This corruption of the FastCGI protocol state allows the attacker to execute arbitrary code with the privileges of the PHP-FPM worker on the hosting web server. Anyone running a vulnerable PHP-FPM behind an affected configuration is exposed, including Linux distribution packages (Ubuntu, Debian, Fedora, Red Hat Enterprise Linux, Red Hat Software Collections), Tenable.sc deployments, and QNAP NAS devices running vulnerable PHP. The flaw is being actively exploited in the wild — it is in CISA's KEV with known ransomware use (including campaigns such as NextCry targeting Nextcloud instances on Linux servers) — and a public proof-of-concept exploit exists, consistent with its 99.8% EPSS score.
What to do: Upgrade PHP to 7.1.33, 7.2.24, 7.3.11 or later (or apply your distribution's/vendor's patched packages — CISA's KEV required action is to apply updates per vendor instructions; QNAP users should apply QNAP's released updates). As an interim mitigation, harden the nginx fastcgi_split_path_info configuration (prefix the regex with '^' and use try_files to confirm the script exists) or disable PATH_INFO where it is not needed. Prioritize internet-facing web servers, shared hosting, and QNAP/Nextcloud instances for patching and check them for compromise, given active ransomware exploitation.
| PHP (FastCGI Process Manager/FPM) | 7.1.x < 7.1.33, 7.2.x < 7.2.24, 7.3.x < 7.3.11 (in certain FPM configurations) |
| canonical Ubuntu Linux | — |
| Debian Linux | — |
| fedoraproject Fedora | — |
| Tenable.sc | — |
| redhat Red Hat Enterprise Linux (Server, Desktop, EUS, EUS Compute Node, for ARM 64, for ARM 64 EUS) | — |
| redhat Red Hat Software Collections | — |
| QNAP NAS devices (running vulnerable PHP-FPM via bundled applications) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it is possible to cause FPM module to write past allocated buffers into the space reserved for FCGI protocol data, thus opening the possibility of remote code execution.
- Affected
- PHP FastCGI Process Manager (FPM)
- Required action
- Apply updates per vendor instructions.
- Due date
- Ransomware use
- Known
- Vendors
- phpcanonicaldebianfedoraprojecttenableredhat
- Products
- php, ubuntu linux, debian linux, fedora, tenable.sc, software collections, enterprise linux, enterprise linux desktop, enterprise linux eus, enterprise linux eus compute node, enterprise linux for arm 64, enterprise linux for arm 64 eus
- Weakness
- CWE-120, CWE-787
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H