CVE-2016-5114
php: out-of-bounds write in fpm_log.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (low).
Description
sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows attackers to obtain sensitive information from process memory or cause a denial of service (out-of-bounds read and buffer overflow) via a long string, as demonstrated by a long URI in a configuration with custom REQUEST_URI logging.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 7 | php5 | 5.4.45-0+deb7u5 |
| debian 8 | php5 | 5.6.17+dfsg-0+deb8u1 |
| Red Hat | php, php-bcmath, php-cli and 25 more | no fix listed |
| ubuntu 12.04 | php5 | 5.3.10-1ubuntu3.24 |
| ubuntu 14.04 | php5 | 5.5.9+dfsg-1ubuntu4.19 |
| ubuntu 14.04-ESM | php5 | 5.5.9+dfsg-1ubuntu4.19 |
Show all 33 entries from 6 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 7 | php5 | 5.4.45-0+deb7u5 |
| debian 8 | php5 | 5.6.17+dfsg-0+deb8u1 |
| Red Hat | php | no fix listed |
| Red Hat | php-bcmath | no fix listed |
| Red Hat | php-cli | no fix listed |
| Red Hat | php-common | no fix listed |
| Red Hat | php-dba | no fix listed |
| Red Hat | php-devel | no fix listed |
| Red Hat | php-embedded | no fix listed |
| Red Hat | php-enchant | no fix listed |
| Red Hat | php-fpm | no fix listed |
| Red Hat | php-gd | no fix listed |
| Red Hat | php-imap | no fix listed |
| Red Hat | php-intl | no fix listed |
| Red Hat | php-ldap | no fix listed |
| Red Hat | php-mbstring | no fix listed |
| Red Hat | php-mysql | no fix listed |
| Red Hat | php-mysqlnd | no fix listed |
| Red Hat | php-odbc | no fix listed |
| Red Hat | php-pdo | no fix listed |
| Red Hat | php-pgsql | no fix listed |
| Red Hat | php-process | no fix listed |
| Red Hat | php-pspell | no fix listed |
| Red Hat | php-recode | no fix listed |
| Red Hat | php-snmp | no fix listed |
| Red Hat | php-soap | no fix listed |
| Red Hat | php-tidy | no fix listed |
| Red Hat | php-xml | no fix listed |
| Red Hat | php-xmlrpc | no fix listed |
| Red Hat | php-zts | no fix listed |
| ubuntu 12.04 | php5 | 5.3.10-1ubuntu3.24 |
| ubuntu 14.04 | php5 | 5.5.9+dfsg-1ubuntu4.19 |
| ubuntu 14.04-ESM | php5 | 5.5.9+dfsg-1ubuntu4.19 |
References
- http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://seclists.org/bugtraq/2016/Jan/117
- http://www.openwall.com/lists/oss-security/2016/02/02/4
- http://www.openwall.com/lists/oss-security/2016/05/29/1
- http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine
All 14 references
- https://access.redhat.com/security/cve/CVE-2016-5114
- https://bugs.php.net/bug.php?id=70755
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://nvd.nist.gov/vuln/detail/CVE-2016-5114
- https://ubuntu.com/security/notices/USN-3045-1
- https://www.cve.org/CVERecord?id=CVE-2016-5114