CVE-2016-8670
php: Stack based buffer overflow in dynamicGetbuf
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).
Description
Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagecreatefromstring call.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php56, php56-bcmath, php56-cli and 29 more | 5.6.29-1.131.amzn1 |
| debian 11 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 12 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 13 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 14 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 7 | libgd2 | 2.0.36~rc1~dfsg-6.1+deb7u6 |
| debian 8 | libgd2 | 2.1.0-5+deb8u7 |
| echo | libgd2 | 2.2.3-87-gd0fec80-1 |
| Red Hat | gd, gd-devel, gd-progs and 88 more | no fix listed |
| seal Red Hat 7 | gd, seal-gd | 2.0.35-27.el7_9+sp999 |
| ubuntu 12.04 | libgd2 | 2.0.36~rc1~dfsg-6ubuntu2.3 |
| ubuntu 14.04 | libgd2 | 2.1.0-3ubuntu0.5 |
Show all 138 entries from 16 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php56 | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-bcmath | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-cli | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-common | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-dba | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-dbg | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-debuginfo | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-devel | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-embedded | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-enchant | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-fpm | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-gd | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-gmp | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-imap | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-intl | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-ldap | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-mbstring | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-mcrypt | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-mssql | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-mysqlnd | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-odbc | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-opcache | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-pdo | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-pgsql | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-process | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-pspell | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-recode | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-snmp | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-soap | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-tidy | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-xml | 5.6.29-1.131.amzn1 |
| amazon linux 1 | php56-xmlrpc | 5.6.29-1.131.amzn1 |
| debian 11 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 12 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 13 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 14 | libgd2 | 2.2.3-87-gd0fec80-1 |
| debian 7 | libgd2 | 2.0.36~rc1~dfsg-6.1+deb7u6 |
| debian 8 | libgd2 | 2.1.0-5+deb8u7 |
| echo | libgd2 | 2.2.3-87-gd0fec80-1 |
| Red Hat | gd | no fix listed |
| Red Hat | gd-devel | no fix listed |
| Red Hat | gd-progs | no fix listed |
| 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 |
| Red Hat | rh-php56-php | no fix listed |
| Red Hat | rh-php56-php-bcmath | no fix listed |
| Red Hat | rh-php56-php-cli | no fix listed |
| Red Hat | rh-php56-php-common | no fix listed |
| Red Hat | rh-php56-php-dba | no fix listed |
| Red Hat | rh-php56-php-dbg | no fix listed |
| Red Hat | rh-php56-php-devel | no fix listed |
| Red Hat | rh-php56-php-embedded | no fix listed |
| Red Hat | rh-php56-php-enchant | no fix listed |
| Red Hat | rh-php56-php-fpm | no fix listed |
| Red Hat | rh-php56-php-gd | no fix listed |
| Red Hat | rh-php56-php-gmp | no fix listed |
| Red Hat | rh-php56-php-imap | no fix listed |
| Red Hat | rh-php56-php-intl | no fix listed |
| Red Hat | rh-php56-php-ldap | no fix listed |
| Red Hat | rh-php56-php-mbstring | no fix listed |
| Red Hat | rh-php56-php-mysqlnd | no fix listed |
| Red Hat | rh-php56-php-odbc | no fix listed |
| Red Hat | rh-php56-php-opcache | no fix listed |
| Red Hat | rh-php56-php-pdo | no fix listed |
| Red Hat | rh-php56-php-pgsql | no fix listed |
| Red Hat | rh-php56-php-process | no fix listed |
| Red Hat | rh-php56-php-pspell | no fix listed |
| Red Hat | rh-php56-php-recode | no fix listed |
| Red Hat | rh-php56-php-snmp | no fix listed |
| Red Hat | rh-php56-php-soap | no fix listed |
| Red Hat | rh-php56-php-tidy | no fix listed |
| Red Hat | rh-php56-php-xml | no fix listed |
| Red Hat | rh-php56-php-xmlrpc | no fix listed |
| Red Hat | rh-php70-php | no fix listed |
| Red Hat | rh-php70-php-bcmath | no fix listed |
| Red Hat | rh-php70-php-cli | no fix listed |
| Red Hat | rh-php70-php-common | no fix listed |
| Red Hat | rh-php70-php-dba | no fix listed |
| Red Hat | rh-php70-php-dbg | no fix listed |
| Red Hat | rh-php70-php-devel | no fix listed |
| Red Hat | rh-php70-php-embedded | no fix listed |
| Red Hat | rh-php70-php-enchant | no fix listed |
| Red Hat | rh-php70-php-fpm | no fix listed |
| Red Hat | rh-php70-php-gd | no fix listed |
| Red Hat | rh-php70-php-gmp | no fix listed |
| Red Hat | rh-php70-php-imap | no fix listed |
| Red Hat | rh-php70-php-intl | no fix listed |
| Red Hat | rh-php70-php-json | no fix listed |
| Red Hat | rh-php70-php-ldap | no fix listed |
| Red Hat | rh-php70-php-mbstring | no fix listed |
| Red Hat | rh-php70-php-mysqlnd | no fix listed |
| Red Hat | rh-php70-php-odbc | no fix listed |
| Red Hat | rh-php70-php-opcache | no fix listed |
| Red Hat | rh-php70-php-pdo | no fix listed |
| Red Hat | rh-php70-php-pgsql | no fix listed |
| Red Hat | rh-php70-php-process | no fix listed |
| Red Hat | rh-php70-php-pspell | no fix listed |
| Red Hat | rh-php70-php-recode | no fix listed |
| Red Hat | rh-php70-php-snmp | no fix listed |
| Red Hat | rh-php70-php-soap | no fix listed |
| Red Hat | rh-php70-php-tidy | no fix listed |
| Red Hat | rh-php70-php-xml | no fix listed |
| Red Hat | rh-php70-php-xmlrpc | no fix listed |
| Red Hat | rh-php70-php-zip | no fix listed |
| seal Red Hat 7 | gd | 2.0.35-27.el7_9+sp999 |
| seal Red Hat 7 | seal-gd | 2.0.35-27.el7_9+sp999 |
| ubuntu 12.04 | libgd2 | 2.0.36~rc1~dfsg-6ubuntu2.3 |
| ubuntu 14.04 | libgd2 | 2.1.0-3ubuntu0.5 |
| ubuntu 14.04-ESM | libgd2 | 2.1.0-3ubuntu0.5 |
| ubuntu 16.04 | libgd2 | 2.1.1-4ubuntu0.16.04.5 |
| ubuntu 16.04-ESM | libgd2 | 2.1.1-4ubuntu0.16.04.5 |
| ubuntu 16.10 | libgd2 | 2.2.1-1ubuntu3.2 |
References
- http://www.debian.org/security/2016/dsa-3693
- http://www.openwall.com/lists/oss-security/2016/10/15/1
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/ChangeLog-7.php
- http://www.securityfocus.com/bid/93594
- https://access.redhat.com/security/cve/CVE-2016-8670
- https://bugs.php.net/bug.php?id=73280
- https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9