CVE-2016-7568
php: Integer overflow in gdImageWebpCtx
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.4 | gd | 2.2.3-r1 |
| 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 8 | libgd2, php5 | 2.1.0-5+deb8u7 and 1 more |
| echo | libgd2 | 2.2.3-87-gd0fec80-1 |
| 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 |
Show all 13 entries from 12 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.4 | gd | 2.2.3-r1 |
| 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 8 | libgd2 | 2.1.0-5+deb8u7 |
| debian 8 | php5 | 5.6.27+dfsg-0+deb8u1 |
| echo | libgd2 | 2.2.3-87-gd0fec80-1 |
| 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.securityfocus.com/bid/93184
- https://access.redhat.com/security/cve/CVE-2016-7568
- https://bugs.php.net/bug.php?id=73003
- https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03
- https://github.com/libgd/libgd/issues/308
- https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6
- https://nvd.nist.gov/vuln/detail/CVE-2016-7568