CVE-2016-10168: Integer Overflow

Published Jan 19, 2017
·
Updated

An integer overflow in gdio.c was found.

Upstream patch:

https://github.com/libgd/libgd/commit/69d2fd2c597ffc0c217de1238b9bf4d4bceba8e6

PHP bug:

https://bugs.php.net/bug.php?id=73869

CVE assignment:

http://www.openwall.com/lists/oss-security/2017/01/28/6

Other sources

Fixed bug (Signed Integer Overflow gdio.c). (CVE-2016-10168)

— PHP

Integer overflow in gdio.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors involving the number of horizontal and vertical chunks in an image.

— MITRE

Affected Software

10 affected componentsFixes available
redhat/gd<2.2.4
2.2.4
redhat/php<5.6.30
5.6.30
redhat/php<7.0.15
7.0.15
redhat/php<7.1.1
7.1.1
Libgd Libgd<=2.2.3
PHP PHP<7.0.15
7.0.15
debian/libgd2
2.0.36~rc1~dfsg-6.1+deb7u82.1.0-5+deb8u92.2.4-1
debian/php5
5.6.30+dfsg-0+deb8u1
debian/php7.0
7.0.15-1
debian/php7.1
7.1.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 2.2.4
  2. Upgrade

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

    Fixed in 5.6.30
  3. Upgrade

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

    Fixed in 7.0.15
  4. Upgrade

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

    Fixed in 7.1.1
  5. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.15
  6. Upgrade

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

    Fixed in 2.0.36~rc1~dfsg-6.1+deb7u8Fixed in 2.1.0-5+deb8u9Fixed in 2.2.4-1
  7. Upgrade

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

    Fixed in 5.6.30+dfsg-0+deb8u1
  8. Upgrade

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

    Fixed in 7.0.15-1
  9. Upgrade

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

    Fixed in 7.1.1-1
  10. Upgrade

    Upgrade libgd/libgd to a version that resolves this vulnerability.

    Fixed in 2.2.4

Event History

Jan 19, 2017
CVE Published
12:00 AM
Data Sourced
12:00 AM
DescriptionAffected Software
Updated
12:00 AM
Affected Software
Feb 3, 2017
Data Sourced
11:12 AM
Severity
Mar 15, 2017
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 4, 2018
Data Sourced
01:29 AM
RemedyWeakness
Mar 11, 2021
Data Sourced
via Red Hat·02:56 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-10168?

CVE-2016-10168 has a medium severity rating due to the potential for integer overflow vulnerabilities.

2

How do I fix CVE-2016-10168?

To fix CVE-2016-10168, upgrade the GD Graphics Library to version 2.2.4 or higher.

3

What systems are affected by CVE-2016-10168?

CVE-2016-10168 affects versions of the GD Graphics Library prior to 2.2.4 and certain versions of PHP.

4

What types of attacks could exploit CVE-2016-10168?

An attacker could exploit CVE-2016-10168 by crafting a malicious image that triggers integer overflow, leading to potential denial of service.

5

Is CVE-2016-10168 still a concern for modern systems?

Although CVE-2016-10168 has been patched, systems running outdated versions may still be at risk if not updated.

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