Underflow in PHP-FPM can lead to RCE (CVE-2019-11043)
Published In CISA KEV since Sources: CVE.org
- Actively exploited
- Source: ANSSI / CERT-FR How we classify
- Ransomware
- Public exploit
What is affected, what to do
This vulnerability allows a buffer overflow in the PHP FastCGI Process Manager (FPM), enabling remote code execution (RCE). An attacker can execute arbitrary code without authentication on affected systems. The vulnerability is actively exploited in ransomware campaigns since 2022. Affected are PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24, and 7.3.x below 7.3.11, as well as certain Ubuntu systems. Immediate patching to the latest version is urgently required.
The vulnerability is being actively exploited; treat it as a priority. CISA lists it as used in ransomware campaigns. Update PHP to version 7.1.33, PHP to version 7.2.24, PHP to version 7.3.11. Immediate actions, mitigation and detection rules are in the runbook below.
- Affected
- PHP
lt 7.1.x..7.1.33 - PHP
lt 7.2.x..7.2.24 - PHP
lt 7.3.x..7.3.11
- PHP
- Fixed in
- PHP
7.1.33 - PHP
7.2.24 - PHP
7.3.11
- PHP
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
9.8
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
8.7
CVSS v3
Severity High on the scale from 0 to 10.
Source: CVE.org
99.75 %
EPSS score
High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
Source: FIRST EPSS, percentile 99.95
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 248.42 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- actively exploitedSource: ANSSI / CERT-FR How we classify
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 9.8 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 8.7
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 99.75 %
- High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 99.95
- Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- Actively exploited
- Published
In CISA KEV since
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossaryCWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-120
Response and mitigation
Why act now?
Prioritisation rationale
This CVE is on KEV because a working public PoC (phuip-fpizdam) exists, the flaw is network-reachable without authentication, and the vulnerable nginx configuration pattern propagated through tutorials and default stacks for years, creating a wide attack surface. Exploitation likelihood is among the very highest observed across the CVE corpus, and the CISA ransomware-use flag raises the urgency further. Treat every internet-exposed PHP-FPM host behind nginx as P1; purely internal workloads warrant P2 because lateral-movement exploitation remains realistic. After patching, bake the try_files directive into baseline nginx templates to prevent configuration regression.
Runbook step 1
Immediate response (0-24 h)
- Upgrade PHP to a patched minor release immediately: 7.1.33, 7.2.24 or 7.3.11 (or any later branch). Prefer distribution packages:
apt-get update && apt-get install --only-upgrade php7.2-fpmon Ubuntu/Debian. Restart withsystemctl restart php*-fpm nginxand confirm viaphp-fpm -v. - Enumerate exposed nginx+PHP-FPM configurations, specifically the vulnerable combination of
fastcgi_split_path_info ^(.+?\.php)(/.*)$;plusfastcgi_param PATH_INFO $fastcgi_path_info;without a precedingtry_files $uri =404;. List candidates withgrep -R "fastcgi_split_path_info" /etc/nginx/. - As an emergency workaround before patching, insert
try_files $uri =404;into every FastCGI location block and reload nginx (nginx -t && systemctl reload nginx). This blocks the PoC path that appends URL fragments past the.phpextension. - Instruct perimeter WAF or reverse proxy to drop requests containing newline characters (
%0a) in the URI and unusually long PATH_INFO suffixes after.php/. This signature covers the public "phuip-fpizdam" exploit. - Scan internet-exposed PHP-FPM hosts first (Shodan tag
php-fpm, filter internal CMDB for PHP workloads) and treat them as crown-jewel risk until patch confirmation. On suspected compromise, hunt for web shells under/var/www, cron modifications and newly created SUID binaries.
- Upgrade PHP to a patched minor release immediately: 7.1.33, 7.2.24 or 7.3.11 (or any later branch). Prefer distribution packages:
Runbook step 2
Mitigation layers
- Network: Never expose the PHP-FPM socket (TCP 9000) directly to the internet — bind to a Unix socket or localhost only. Enforce egress filtering on web servers to block reverse shells (outbound TCP 4444, 1337, random high ports to external IPs).
- Web server hardening: Always place
try_files $uri =404;beforefastcgi_passin nginx. Alternatively dropfastcgi_split_path_infoif the application does not need PATH_INFO. For Apache mod_proxy_fcgi, audit ProxyPassMatch regexes for the same pattern. - Endpoint: Enforce AppArmor or SELinux profiles for
php-fpmthat restrict writes to/var/www,/tmpand/dev/shm. Extenddisable_functionsinphp.inito includeexec,passthru,shell_exec,system,proc_open,popen. - IAM/least-privilege: Run PHP-FPM pools under dedicated per-vhost unprivileged users (
user = www-vhost1) rather than a sharedwww-data. Set file permissions to0640/0750owned byroot:www-vhost1so that RCE cannot overwrite application code. - WAF/IPS: Deploy a Suricata/Snort rule matching URI pattern
\.php/[^\s]{200,}and presence of%0aafter.php/. Enable ModSecurity CRS rule 932160 (RCE) plus a customSecRule REQUEST_URI "@rx \.php/.*\x0a". - Container estates: Migrate from legacy 7.x to maintained
php:8.x-fpmimages; integrate an image scanner (Trivy, Grype) into CI that blocks CVE-2019-11043.
Runbook step 3
Detection rules
- Nginx/Apache access logs: unusually long URIs with
.php/followed by payload data. KQL shape:WebLogs | where cs_uri_stem matches regex @"\.php/.{150,}" | summarize count() by c_ip, cs_host. - Sysmon/auditd on web servers: child processes of
php-fpmoutside the baseline, in particular/bin/sh,bash,nc,python,perl,curl,wget. Sigma shape:parent_image: '*/php-fpm*' and process: ['*/sh','*/bash','*/nc','*/curl','*/wget']. - auditd rule for writes by the
www-datauser outside/var/lib/php/sessionsand/var/www/*/uploads:-a always,exit -F arch=b64 -S openat -F auid=33 -F dir!=/var/www -k php_fpm_write_anomaly. - Network telemetry (Zeek
conn.log): outbound connections from web server IPs to non-business ports (4444, 1337, 8443 toward non-CDN IPs). Alert onorig_h in webserver_subnet and resp_p not in [80,443,53,123]. - EDR process ancestry: alert when
php-fpm→sh→ network tool occurs within 5 seconds. This is the canonical phuip-fpizdam payload pattern.
- Nginx/Apache access logs: unusually long URIs with
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
Description
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.
Source: NVD (NIST), cvelistv5, CISA KEV Catalog
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| PHP | PHP |
|
|
| php | php |
|
|
| redhat | software_collections |
|
|
| tenable | tenable.sc |
|
|
Vendors and products
- Canonical Canonical Ubuntu Linux
- Debian Debian Linux
- Fedora Project Infrastructure Fedora
- PHP Group PHP
- Red Hat Redhat Enterprise Linux
- Red Hat Redhat Enterprise Linux Desktop
- Red Hat Red Hat Enterprise Linux Extended Update Support (EUS)
- Red Hat Enterprise Linux Eus Compute Node
- Red Hat Enterprise Linux For Arm 64
- Red Hat Enterprise Linux For Arm 64 Eus
- Red Hat Red Hat Enterprise Linux For IBM Z Systems
- Red Hat Red Hat Enterprise Linux For IBM z Systems Extended Update Support (EUS) 7.1 s390x
Affected operating systems
| Linux | debian | debian_linux | 10.0 |
| Linux | debian | debian_linux | 9.0 |
| Linux | redhat | enterprise_linux | 8.0 |
| Linux | redhat | enterprise_linux_desktop | 6.0 |
| Linux | redhat | enterprise_linux_desktop | 7.0 |
| Linux | redhat | enterprise_linux_eus | 7.7 |
| Linux | redhat | enterprise_linux_eus | 8.1 |
| Linux | redhat | enterprise_linux_eus | 8.2 |
| Linux | redhat | enterprise_linux_eus | 8.4 |
| Linux | redhat | enterprise_linux_eus | 8.6 |
| Linux | redhat | enterprise_linux_eus | 8.8 |
| Linux | redhat | enterprise_linux_eus_compute_node | 7.7 |
| Linux | redhat | enterprise_linux_for_arm_64 | 8.0_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.1_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.2_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.4_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.6_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.8_aarch64 |
| Linux | redhat | enterprise_linux_for_ibm_z_systems | 6.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems | 7.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems | 8.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 7.7_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 8.1_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 8.2_s390x |
Weakness classes (CWE)
CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Base
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
Entry at MITRE CWE-120
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| CISA KEV Catalog | CISA Known Exploited Vulnerability (opens in a new tab)cisa.gov | actively exploited | |
| ANSSI / CERT-FRLicence Ouverte 2.0, as of | CERTFR-2019-ALE-014 – Vulnérabilité dans PHP (clôturée 2020-01-08) (opens in a new tab)cert.cyber.gouv.fr | actively exploited | |
| Reference tagged as exploit | github.com (opens in a new tab) | PoC (publicly reported)reported, not verified | — |
| Packet Storm | PHP FPM 7.x Remote Code Execution (opens in a new tab)packetstormsecurity.com | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | vulhub-php-cve-2019-11043 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- github.comneex/phuip-fpizdamx_refsource_MISC, Exploit, Third-party advisory
- bugs.php.netbug.php?id=78599x_refsource_CONFIRM, Exploit, Issue tracking, Patch, Vendor advisory
- usn.ubuntu.comUSN-4166-1Vendor advisory, x_refsource_UBUNTU, Third-party advisory
- debian.orgDSA-4552Vendor advisory, x_refsource_DEBIAN, Mailing list, Third-party advisory
- debian.orgDSA-4553Vendor advisory, x_refsource_DEBIAN, Mailing list, Third-party advisory
- usn.ubuntu.comUSN-4166-2Vendor advisory, x_refsource_UBUNTU, Third-party advisory
- support.f5.comcsp/article/K75408500?utm_source=f5support&utm_medium=RSSx_refsource_CONFIRM, Third-party advisory
- lists.fedoraproject.orgFEDORA-2019-4adc49a476Vendor advisory, x_refsource_FEDORA, Mailing list, Third-party advisory
- security.netapp.comadvisory/ntap-20191031-0003x_refsource_CONFIRM, Third-party advisory
- access.redhat.comRHSA-2019:3286Vendor advisory, x_refsource_REDHAT, Third-party advisory
- access.redhat.comRHSA-2019:3287Vendor advisory, x_refsource_REDHAT, Third-party advisory
- access.redhat.comRHSA-2019:3299Vendor advisory, x_refsource_REDHAT, Third-party advisory
- access.redhat.comRHSA-2019:3300Vendor advisory, x_refsource_REDHAT, Third-party advisory
- lists.fedoraproject.orgFEDORA-2019-187ae3128dVendor advisory, x_refsource_FEDORA, Mailing list, Third-party advisory
- lists.fedoraproject.orgFEDORA-2019-7bb07c3b02Vendor advisory, x_refsource_FEDORA, Mailing list, Third-party advisory
- lists.opensuse.orgopenSUSE-SU-2019:2441Vendor advisory, x_refsource_SUSE, Mailing list, Third-party advisory
- access.redhat.comRHSA-2019:3724Vendor advisory, x_refsource_REDHAT, Third-party advisory
- access.redhat.comRHSA-2019:3735Vendor advisory, x_refsource_REDHAT, Third-party advisory
- access.redhat.comRHSA-2019:3736Vendor advisory, x_refsource_REDHAT, Third-party advisory
- synology.comsecurity/advisory/Synology_SA_19_36x_refsource_CONFIRM, Third-party advisory
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2019-11043"><img src="https://intel.neosec.eu/badge/cve/CVE-2019-11043.svg?lang=en" alt="CVE-2019-11043 – NEOSEC Intel" height="20"></a>