CVE-2016-4073
php: mb_strcut() Negative size parameter in memcpy
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Amazon (high), Red Hat (medium), Ubuntu (medium).
Description
Multiple integer overflows in the mbfl_strcut function in ext/mbstring/libmbfl/mbfl/mbfilter.c in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5 allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted mb_strcut call.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php55, php55-bcmath, php55-cli and 60 more | 5.5.35-1.114.amzn1 and 1 more |
| debian 7 | php5 | 5.4.45-0+deb7u3 |
| debian 8 | php5 | 5.6.20+dfsg-0+deb8u1 |
| Red Hat | php, php-bcmath, php-cli and 25 more | no fix listed |
| ubuntu 12.04 | php5 | 5.3.10-1ubuntu3.22 |
| ubuntu 14.04 | php5 | 5.5.9+dfsg-1ubuntu4.16 |
| ubuntu 14.04-ESM | php5 | 5.5.9+dfsg-1ubuntu4.16 |
| ubuntu 15.10 | php5 | 5.6.11+dfsg-1ubuntu3.2 |
| ubuntu 16.04 | php7.0 | 7.0.4-7ubuntu2.1 |
| ubuntu 16.04-ESM | php7.0 | 7.0.4-7ubuntu2.1 |
Show all 99 entries from 10 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php55 | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-bcmath | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-cli | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-common | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-dba | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-debuginfo | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-devel | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-embedded | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-enchant | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-fpm | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-gd | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-gmp | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-imap | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-intl | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-ldap | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-mbstring | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-mcrypt | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-mssql | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-mysqlnd | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-odbc | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-opcache | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-pdo | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-pgsql | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-process | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-pspell | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-recode | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-snmp | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-soap | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-tidy | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-xml | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php55-xmlrpc | 5.5.35-1.114.amzn1 |
| amazon linux 1 | php56 | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-bcmath | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-cli | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-common | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-dba | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-dbg | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-debuginfo | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-devel | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-embedded | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-enchant | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-fpm | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-gd | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-gmp | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-imap | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-intl | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-ldap | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-mbstring | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-mcrypt | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-mssql | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-mysqlnd | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-odbc | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-opcache | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-pdo | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-pgsql | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-process | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-pspell | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-recode | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-snmp | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-soap | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-tidy | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-xml | 5.6.21-1.124.amzn1 |
| amazon linux 1 | php56-xmlrpc | 5.6.21-1.124.amzn1 |
| debian 7 | php5 | 5.4.45-0+deb7u3 |
| debian 8 | php5 | 5.6.20+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.22 |
| ubuntu 14.04 | php5 | 5.5.9+dfsg-1ubuntu4.16 |
| ubuntu 14.04-ESM | php5 | 5.5.9+dfsg-1ubuntu4.16 |
| ubuntu 15.10 | php5 | 5.6.11+dfsg-1ubuntu3.2 |
| ubuntu 16.04 | php7.0 | 7.0.4-7ubuntu2.1 |
| ubuntu 16.04-ESM | php7.0 | 7.0.4-7ubuntu2.1 |
References
- http://lists.apple.com/archives/security-announce/2016/May/msg00004.html
- http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00031.html
- http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00033.html
- http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00056.html
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://www.debian.org/security/2016/dsa-3560
- http://www.openwall.com/lists/oss-security/2016/04/11/7
- http://www.openwall.com/lists/oss-security/2016/04/24/1
All 24 references
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/ChangeLog-7.php
- http://www.securityfocus.com/bid/85991
- http://www.ubuntu.com/usn/USN-2952-1
- http://www.ubuntu.com/usn/USN-2952-2
- https://access.redhat.com/security/cve/CVE-2016-4073
- https://bugs.php.net/bug.php?id=71906
- https://gist.github.com/smalyshev/d8355c96a657cc5dba70
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=64f42c73efc58e88671ad76b6b6bc8e2b62713e1
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://nvd.nist.gov/vuln/detail/CVE-2016-4073
- https://security.gentoo.org/glsa/201611-22
- https://support.apple.com/HT206567
- https://ubuntu.com/security/notices/USN-2952-1
- https://ubuntu.com/security/notices/USN-2984-1
- https://www.cve.org/CVERecord?id=CVE-2016-4073