CVE-2016-6128: Input Validation
It was found that libgd did not properly handle invalid color index, which could lead to a denial of service against applications using the libgd library.
Upstream patches:
https://github.com/libgd/libgd/compare/3fe0a7128bac5000fdcfab888bd2a75ec0c9447d...fd623025505e87bba7ec8555eeb72dae4fb0afd
CVE assignment:
http://seclists.org/oss-sec/2016/q2/627
Other sources
The gdImageCropThreshold function in gdcrop.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 7.0.9, allows remote attackers to cause a denial of service (application crash) via an invalid color index.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.6.25 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.0.10 - Upgrade
Upgrade
debian/libgd2to a version that resolves this vulnerability.Fixed in 2.1.0-5+deb8u4Fixed in 2.2.2-29-g3c2b605-1 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.6.26+dfsg-0+deb8u1Fixed in 5.6.26+dfsg-1 - Upgrade
Upgrade
debian/php7.0to a version that resolves this vulnerability.Fixed in 7.0.9-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.2.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.0.9
Event History
Frequently Asked Questions
What is the severity of CVE-2016-6128?
CVE-2016-6128 has a medium severity rating due to its potential to cause denial of service attacks.
How do I fix CVE-2016-6128?
To fix CVE-2016-6128, upgrade the GD Graphics Library to version 2.2.3 or later.
Which versions of PHP are affected by CVE-2016-6128?
CVE-2016-6128 affects PHP versions prior to 7.0.9 and 5.6.x versions before 5.6.24.
What are the impacts of CVE-2016-6128 on my application?
The main impact of CVE-2016-6128 is application crashes due to denial of service vulnerabilities.
Is CVE-2016-6128 specific to certain operating systems?
CVE-2016-6128 affects specific distributions of Debian, openSUSE, and Ubuntu Linux.