CVE-2016-6128: Input Validation

Published Jun 30, 2016
·
Updated

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

17 affected componentsFixes available
Debian Debian Linux=8.0
openSUSE Leap=42.1
Libgd Libgd<=2.2.2
PHP PHP>=5.6.0<=5.6.24
PHP PHP>=7.0.0<7.0.9
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
redhat/php<5.6.25
5.6.25
redhat/php<7.0.10
7.0.10
All of the following
Libgd Libgd<=2.2.2
Any of the following
PHP PHP>=5.6.0<=5.6.24
PHP PHP>=7.0.0<7.0.9
debian/libgd2
2.1.0-5+deb8u42.2.2-29-g3c2b605-1
debian/php5
5.6.26+dfsg-0+deb8u15.6.26+dfsg-1
debian/php7.0
7.0.9-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.6.25
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.0.10
  3. Upgrade

    Upgrade debian/libgd2 to a version that resolves this vulnerability.

    Fixed in 2.1.0-5+deb8u4Fixed in 2.2.2-29-g3c2b605-1
  4. Upgrade

    Upgrade debian/php5 to a version that resolves this vulnerability.

    Fixed in 5.6.26+dfsg-0+deb8u1Fixed in 5.6.26+dfsg-1
  5. Upgrade

    Upgrade debian/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.9-1
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.3
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.0.9

Event History

Jun 30, 2016
Data Sourced
via Red Hat·12:19 PM
DescriptionSeverityAffected Software
Aug 7, 2016
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
10:59 AM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2016-6128?

To fix CVE-2016-6128, upgrade the GD Graphics Library to version 2.2.3 or later.

3

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.

4

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.

5

Is CVE-2016-6128 specific to certain operating systems?

CVE-2016-6128 affects specific distributions of Debian, openSUSE, and Ubuntu Linux.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203