CVE-2019-11046Buffer underflow in bc_shift_addsub
In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP bcmath extension functions on some systems, including Windows, can be tricked into reading beyond the allocated space by supplying it with string containing characters that are identified as numeric by the OS but aren't ASCII numbers. This can read to disclosure of the content of some memory locations.
What to do
Fixed builds are available from 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-11046 |
| Ubuntu 16.04 | php7.0 | Fixed | 7.0.33-0ubuntu0.16.04.9 | UBUNTU-CVE-2019-11046 |
| Ubuntu 14.04 | php5 | Fix pending | 5.5.9+dfsg-1ubuntu4.29+esm8 (Ubuntu Pro) | UBUNTU-CVE-2019-11046 |
| Red Hat Enterprise Linux 8 | apcu-panel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | php | Not affected | ||
| Red Hat Enterprise Linux 8 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 8 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 8 | php-common | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 8 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 8 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 8 | php-json | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 8 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pear | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 8 | php-process | Not affected | ||
| Red Hat Enterprise Linux 8 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 8 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 7 | php | Not affected | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 7 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 7 | php-common | Not affected | ||
| Red Hat Enterprise Linux 7 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 7 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 7 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 7 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 7 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-process | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 7 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 7 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 7 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected | ||
| Red Hat Enterprise Linux 5 | php | Not affected | ||
| Red Hat Enterprise Linux 5 | php53 | Not affected |
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=78878
- 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://support.f5.com/csp/article/K48866433?utm_source=f5support&%3Butm_medium=RSS
- 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.