CVE-2016-6207: Integer Overflow

Published Jul 25, 2016
·
Updated

An integer overflow vulnerability was found in gdContributionsAlloc() function in gdinterpolation.c that can lead to out-of-bounds write.

PHP bug:

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

PHP fix:

https://git.php.net/?p=php-src.git;a=commit;h=8fa9d1ce28f3a894b104979df30d0b65e0f21107

Other sources

Fixed bug (Integer overflow error within gdContributionsAlloc()). (CVE-2016-6207)

— PHP

Integer overflow in the gdContributionsAlloc function in gdinterpolation.c in GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds memory write or memory consumption) via unspecified vectors.

— MITRE

Affected Software

9 affected componentsFixes available
PHP PHP<7.0.9
7.0.9
Libgd Libgd<=2.2.2
Debian Debian Linux=8.0
openSUSE Leap=42.1
PHP PHP>=5.5.0<5.5.38
PHP PHP>=5.6.0<5.6.24
PHP PHP>=7.0.0<7.0.9
redhat/php<5.6.24
5.6.24
redhat/php<7.0.9
7.0.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.9
  2. Upgrade

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

    Fixed in 5.6.24
  3. Upgrade

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

    Fixed in 7.0.9
  4. Upgrade

    Upgrade libgd to a version that resolves this vulnerability.

    Fixed in 2.2.3

Event History

Jul 25, 2016
Data Sourced
via Red Hat·01:09 PM
DescriptionSeverityAffected Software
Aug 12, 2016
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
03:59 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2016-6207?

CVE-2016-6207 is classified as a medium severity vulnerability due to the potential for denial of service.

2

How do I fix CVE-2016-6207?

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

3

Which versions of PHP are affected by CVE-2016-6207?

CVE-2016-6207 affects PHP versions prior to 7.0.9, including the ranges 5.5.0 to 5.5.38 and 5.6.0 to 5.6.24.

4

What impact does CVE-2016-6207 have on systems?

CVE-2016-6207 can lead to denial of service due to out-of-bounds memory writes or memory consumption.

5

Which software is vulnerable to CVE-2016-6207?

CVE-2016-6207 affects versions of libgd up to 2.2.2, as well as certain PHP versions and Debian and openSUSE distributions.

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