CVE-2019-11043Underflow in PHP-FPM can lead to RCE
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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-03-25). If you run an affected version, patch or mitigate now.
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | php7.2 | Fixed | 7.2.24-0ubuntu0.18.04.1 | UBUNTU-CVE-2019-11043 |
| Ubuntu 16.04 | php7.0 | Fixed | 7.0.33-0ubuntu0.16.04.7 | UBUNTU-CVE-2019-11043 |
| Ubuntu 14.04 | php5 | Fix pending | 5.5.9+dfsg-1ubuntu4.29+esm6 (Ubuntu Pro) | UBUNTU-CVE-2019-11043 |
| Red Hat Enterprise Linux 8 | apcu-panel | Fixed | 0:5.1.12-2.module+el8.1.0+3202+af5476b9 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | libzip | Fixed | 0:1.5.1-2.module+el8.1.0+3202+af5476b9 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | libzip-devel | Fixed | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | libzip-tools | Fixed | 0:1.5.1-2.module+el8.1.0+3202+af5476b9 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-bcmath | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-cli | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-common | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-dba | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-dbg | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-devel | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-embedded | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-enchant | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-fpm | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-gd | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-gmp | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-intl | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-json | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-ldap | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-mbstring | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-mysqlnd | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-odbc | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-opcache | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-pdo | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-pear | Fixed | 1:1.10.9-1.module+el8.1.0+3189+a1bff096 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Fixed | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Fixed | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-pecl-zip | Fixed | 0:1.15.3-1.module+el8.1.0+3186+20164e6f | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-pgsql | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-process | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-recode | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-snmp | Fixed | 0:7.3.5-5.module+el8.1.0+4560+e0eee7d6 | RHSA-2019:3735 |
| Red Hat Enterprise Linux 8 | php-soap | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-xml | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 8 | php-xmlrpc | Fixed | 0:7.2.11-4.module+el8.1.0+4555+f5cb8e18 | RHSA-2019:3736 |
| Red Hat Enterprise Linux 7 | php | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-bcmath | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-cli | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-common | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-dba | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-devel | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-embedded | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-enchant | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-fpm | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-gd | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-intl | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-ldap | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-mbstring | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-mysql | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-mysqlnd | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-odbc | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-pdo | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-pgsql | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-process | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-pspell | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-recode | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-snmp | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-soap | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-xml | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 7 | php-xmlrpc | Fixed | 0:5.4.16-46.1.el7_7 | RHSA-2019:3286 |
| Red Hat Enterprise Linux 6 | php | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-bcmath | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-cli | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-common | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-dba | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-devel | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-embedded | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-enchant | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-fpm | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-gd | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-imap | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-intl | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-ldap | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-mbstring | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-mysql | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-odbc | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-pdo | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-pgsql | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-process | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-pspell | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-recode | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-snmp | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-soap | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-tidy | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-xml | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-xmlrpc | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 6 | php-zts | Fixed | 0:5.3.3-50.el6_10 | RHSA-2019:3287 |
| Red Hat Enterprise Linux 5 | php | Not affected | ||
| Red Hat Enterprise Linux 5 | php53 | Not affected | ||
| AlmaLinux 8 | apcu-panel | Fixed | 5.1.12-2.module_el8.3.0+2010+7c76a223 | ALSA-2019:3736 |
| AlmaLinux 8 | libzip | Fixed | 1.5.2-1.module_el8.3.0+2009+b272fdef | ALSA-2019:3735 |
| AlmaLinux 8 | libzip-devel | Fixed | 1.5.2-1.module_el8.4.0+2229+b272fdef | ALSA-2019:3735 |
| AlmaLinux 8 | libzip-tools | Fixed | 1.5.1-2.module_el8.3.0+2010+7c76a223 | ALSA-2019:3735 |
| AlmaLinux 8 | php-pear | Fixed | 1:1.10.9-1.module_el8.3.0+2009+b272fdef | ALSA-2019:3735 |
| AlmaLinux 8 | php-pecl-apcu | Fixed | 5.1.17-1.module_el8.4.0+2229+b272fdef | ALSA-2019:3735 |
| AlmaLinux 8 | php-pecl-apcu-devel | Fixed | 5.1.17-1.module_el8.4.0+2229+b272fdef | ALSA-2019:3736 |
| AlmaLinux 8 | php-pecl-zip | Fixed | 1.15.3-1.module_el8.4.0+2228+7c76a223 | ALSA-2019:3735 |
| Rocky Linux 8 | libzip | Fixed | 0:1.5.1-2.module+el8.4.0+413+c9202dda | RLSA-2019:3736 |
| Rocky Linux 8 | php-pear | Fixed | 1:1.10.5-9.module+el8.4.0+413+c9202dda | RLSA-2019:3736 |
| Rocky Linux 8 | php-pecl-apcu | Fixed | 0:5.1.12-2.module+el8.4.0+413+c9202dda | RLSA-2019:3736 |
| Rocky Linux 8 | php-pecl-zip | Fixed | 0:1.15.3-1.module+el8.4.0+413+c9202dda | RLSA-2019:3736 |
| Alpine Linux 3.15 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.14 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.13 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.12 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.11 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.10 | php7 | Fixed | 7.3.11-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.9 | php7 | Fixed | 7.2.24-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.8 | php7 | Fixed | 7.2.24-r0 | ALPINE-CVE-2019-11043 |
| Alpine Linux 3.7 | php7 | Fixed | 7.1.33-r0 | ALPINE-CVE-2019-11043 |
What the vendor says
As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PHP: affected: 7.1.x to before 7.1.33, 7.2.x to before 7.2.24, 7.3.x to before 7.3.11; fixed in
7.1.33,7.2.24,7.3.11
Workaround: Configuring nginx (or other server that implements the front-end part of the FPM protocol) to check for the existence of the target file before passing it to PHP FPM (e.g. "try_files $uri =404" or "if (-f $uri)" in nginx) for would prevent this vulnerability from happening.
Vendor advisories:
- https://usn.ubuntu.com/4166-1/ (vendor-advisory)
- https://www.debian.org/security/2019/dsa-4552 (vendor-advisory)
- https://www.debian.org/security/2019/dsa-4553 (vendor-advisory)
- https://usn.ubuntu.com/4166-2/ (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:3286 (vendor-advisory)
References
- https://github.com/neex/phuip-fpizdam
- https://bugs.php.net/bug.php?id=78599
- https://usn.ubuntu.com/4166-1/
- https://www.debian.org/security/2019/dsa-4552
- https://www.debian.org/security/2019/dsa-4553
- https://usn.ubuntu.com/4166-2/
- https://support.f5.com/csp/article/K75408500?utm_source=f5support&%3Butm_medium=RSS
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T62LF4ZWVV7OMMIZFO6IFO5QLZKK7YRD/
- https://security.netapp.com/advisory/ntap-20191031-0003/
- https://access.redhat.com/errata/RHSA-2019:3286
- https://access.redhat.com/errata/RHSA-2019:3287
- https://access.redhat.com/errata/RHSA-2019:3299
- https://access.redhat.com/errata/RHSA-2019:3300
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3W23TP6X4H7LB645FYZLUPNIRD5W3EPU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FSNBUSPKMLUHHOADROKNG5GDWDCRHT5M/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.