CVE-2019-11045DirectoryIterator class silently truncates after a null byte
In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP DirectoryIterator class accepts filenames with embedded \0 byte and treats them as terminating at that byte. This could lead to security vulnerabilities, e.g. in applications checking paths that the code is allowed to access.
What to do
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.2 | UBUNTU-CVE-2019-11045 |
| Ubuntu 16.04 | php7.0 | Fixed | 7.0.33-0ubuntu0.16.04.9 | UBUNTU-CVE-2019-11045 |
| Ubuntu 14.04 | php5 | Fix pending | 5.5.9+dfsg-1ubuntu4.29+esm8 (Ubuntu Pro) | UBUNTU-CVE-2019-11045 |
| Red Hat Enterprise Linux 8 | apcu-panel | Fixed Will not fix | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | libzip | Fixed Will not fix | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | libzip-devel | Fixed Will not fix | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | libzip-tools | Fixed Will not fix | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-bcmath | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-cli | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-common | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-dba | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-dbg | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-devel | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-embedded | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-enchant | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-ffi | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | php-fpm | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-gd | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-gmp | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-intl | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-json | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-ldap | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-mbstring | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-mysqlnd | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-odbc | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-opcache | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pdo | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pear | Fixed Will not fix | 1:1.10.9-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Fixed Will not fix | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Fixed Will not fix | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Fixed Will not fix | 0:2.0.1-1.module+el8.2.0+4968+1d5097db | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Fixed Will not fix | 0:2.8.0-1.module+el8.2.0+4968+1d5097db | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Fixed Will not fix | 0:1.15.4-1.module+el8.1.0+3189+a1bff096 | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-pgsql | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-process | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-recode | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-snmp | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-soap | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-xml | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 8 | php-xmlrpc | Fixed Will not fix | 0:7.3.20-1.module+el8.2.0+7373+b272fdef | RHSA-2020:3662 |
| Red Hat Enterprise Linux 7 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-cli | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-dba | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-embedded | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-enchant | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-fpm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-gd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-intl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-ldap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mysql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-odbc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pdo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-process | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pspell | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-recode | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-snmp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-soap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-xml | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-cli | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-dba | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-embedded | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-enchant | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-fpm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-gd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-imap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-intl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-ldap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-mysql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-odbc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-pdo | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-process | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-pspell | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-recode | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-soap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-tidy | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-xml | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | php-zts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | php | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | php53 | Will not fix Out of support scope | ||
| AlmaLinux 8 | apcu-panel | Fixed | 5.1.17-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | libzip | Fixed | 1.5.2-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | libzip-devel | Fixed | 1.5.2-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | libzip-tools | Fixed | 1.5.2-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-bcmath | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-cli | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-common | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-dba | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-dbg | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-devel | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-embedded | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-enchant | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-fpm | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-gd | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-gmp | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-intl | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-json | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-ldap | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-mbstring | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-mysqlnd | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-odbc | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-opcache | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pdo | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pear | Fixed | 1:1.10.9-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pecl-apcu | Fixed | 5.1.17-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pecl-apcu-devel | Fixed | 5.1.17-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-pecl-rrd | Fixed | 2.0.1-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pecl-xdebug | Fixed | 2.8.0-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pecl-zip | Fixed | 1.15.4-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-pgsql | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-process | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-recode | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-snmp | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-soap | Fixed | 7.3.20-1.module_el8.3.0+2009+b272fdef | ALSA-2020:3662 |
| AlmaLinux 8 | php-xml | Fixed | 7.3.20-1.module_el8.5.0+152+112d3b8c | ALSA-2020:3662 |
| AlmaLinux 8 | php-xmlrpc | Fixed | 7.3.20-1.module_el8.4.0+2229+b272fdef | ALSA-2020:3662 |
| Rocky Linux 8 | libzip | Fixed | 0:1.5.2-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php | Fixed | 0:7.3.20-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php-pear | Fixed | 1:1.10.9-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php-pecl-apcu | Fixed | 0:5.1.17-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php-pecl-rrd | Fixed | 0:2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php-pecl-xdebug | Fixed | 0:2.8.0-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Rocky Linux 8 | php-pecl-zip | Fixed | 0:1.15.4-1.module+el8.4.0+414+2e7afcdd | RLSA-2020:3662 |
| Alpine Linux 3.15 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.14 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.13 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.12 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.11 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.10 | php7 | Fixed | 7.3.13-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.9 | php7 | Fixed | 7.2.26-r0 | ALPINE-CVE-2019-11045 |
| Alpine Linux 3.8 | php7 | Fixed | 7.2.26-r0 | ALPINE-CVE-2019-11045 |
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 Group PHP: affected: 7.2.x to before 7.2.26, 7.3.x to before 7.3.13, 7.4.x to before 7.4.1; fixed in
7.2.26,7.3.13,7.4.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://usn.ubuntu.com/4239-1/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html (vendor-advisory)
- https://www.debian.org/security/2020/dsa-4626 (vendor-advisory)
- https://www.debian.org/security/2020/dsa-4628 (vendor-advisory)
References
- https://bugs.php.net/bug.php?id=78863
- https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html
- https://security.netapp.com/advisory/ntap-20200103-0002/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/
- https://usn.ubuntu.com/4239-1/
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html
- https://seclists.org/bugtraq/2020/Feb/27
- https://www.debian.org/security/2020/dsa-4626
- https://www.debian.org/security/2020/dsa-4628
- https://seclists.org/bugtraq/2020/Feb/31
- https://seclists.org/bugtraq/2021/Jan/3
- https://www.tenable.com/security/tns-2021-14
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.