CVE-2013-7456: High severity Libgd Libgd vulnerability

Published May 27, 2016
·
Updated

An out-of-bounds read in imagescale function was found that can cause crash of application.

Upstream bug (php):

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

Upstream patch:

libgd: https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a php: https://git.php.net/?p=php-src.git;a=commit;h=7a1aac3343af85b4af4df5f8844946eaa27394ab

CVE assignment:

http://seclists.org/oss-sec/2016/q2/412

Other sources

Fixed bug (imagescale out-of-bounds read). (CVE-2013-7456)

— PHP

gdinterpolation.c in the GD Graphics Library (aka libgd) before 2.1.1, as used in PHP before 5.5.36, 5.6.x before 5.6.22, and 7.x before 7.0.7, allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafted image that is mishandled by the imagescale function.

Affected Software

83 affected componentsFixes available
Libgd Libgd=2.1.0
PHP PHP<=5.5.35
PHP PHP=5.6.0-alpha1
PHP PHP=5.6.0-alpha2
PHP PHP=5.6.0-alpha3
PHP PHP=5.6.0-alpha4
PHP PHP=5.6.0-alpha5
PHP PHP=5.6.0-beta1
PHP PHP=5.6.0-beta2
PHP PHP=5.6.0-beta3
PHP PHP=5.6.0-beta4
PHP PHP=5.6.1
PHP PHP=5.6.2
PHP PHP=5.6.3
PHP PHP=5.6.4
PHP PHP=5.6.5
PHP PHP=5.6.6
PHP PHP=5.6.7
PHP PHP=5.6.8
PHP PHP=5.6.9
PHP PHP=5.6.10
PHP PHP=5.6.11
PHP PHP=5.6.12
PHP PHP=5.6.13
PHP PHP=5.6.14
PHP PHP=5.6.15
PHP PHP=5.6.16
PHP PHP=5.6.17
PHP PHP=5.6.18
PHP PHP=5.6.19
PHP PHP=5.6.20
PHP PHP=5.6.21
PHP PHP=7.0.0
PHP PHP=7.0.1
PHP PHP=7.0.2
PHP PHP=7.0.3
PHP PHP=7.0.4
PHP PHP=7.0.5
PHP PHP=7.0.6
PHP PHP<7.0.7
7.0.7
redhat/gd<2.1.1
2.1.1
redhat/php<5.5.36
5.5.36
redhat/php<5.6.22
5.6.22
redhat/php<7.0.7
7.0.7
All of the following
Libgd Libgd=2.1.0
Any of the following
PHP PHP<=5.5.35
PHP PHP=5.6.0-alpha1
PHP PHP=5.6.0-alpha2
PHP PHP=5.6.0-alpha3
PHP PHP=5.6.0-alpha4
PHP PHP=5.6.0-alpha5
PHP PHP=5.6.0-beta1
PHP PHP=5.6.0-beta2
PHP PHP=5.6.0-beta3
PHP PHP=5.6.0-beta4
PHP PHP=5.6.1
PHP PHP=5.6.2
PHP PHP=5.6.3
PHP PHP=5.6.4
PHP PHP=5.6.5
PHP PHP=5.6.6
PHP PHP=5.6.7
PHP PHP=5.6.8
PHP PHP=5.6.9
PHP PHP=5.6.10
PHP PHP=5.6.11
PHP PHP=5.6.12
PHP PHP=5.6.13
PHP PHP=5.6.14
PHP PHP=5.6.15
PHP PHP=5.6.16
PHP PHP=5.6.17
PHP PHP=5.6.18
PHP PHP=5.6.19
PHP PHP=5.6.20
PHP PHP=5.6.21
PHP PHP=7.0.0
PHP PHP=7.0.1
PHP PHP=7.0.2
PHP PHP=7.0.3
PHP PHP=7.0.4
PHP PHP=7.0.5
PHP PHP=7.0.6

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.7
  2. Upgrade

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

    Fixed in 2.1.1
  3. Upgrade

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

    Fixed in 5.5.36
  4. Upgrade

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

    Fixed in 5.6.22
  5. Upgrade

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

    Fixed in 7.0.7
  6. Upgrade

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

    Fixed in 2.1.1
  7. Upgrade

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

    Fixed in 5.5.36
  8. Upgrade

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

    Fixed in 5.6.22
  9. Upgrade

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

    Fixed in 7.0.7

Event History

May 27, 2016
Data Sourced
via Red Hat·11:49 AM
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
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-7456?

CVE-2013-7456 is classified as a denial of service vulnerability due to an out-of-bounds read.

2

How do I fix CVE-2013-7456?

To remediate CVE-2013-7456, upgrade the GD Graphics Library to version 2.1.1 or later and ensure PHP is updated to version 5.5.36 or higher, or 5.6.22 or higher, or 7.0.7 or higher.

3

What versions are affected by CVE-2013-7456?

CVE-2013-7456 affects GD Graphics Library versions prior to 2.1.1 and PHP versions prior to 5.5.36, 5.6.x before 5.6.22, and 7.x before 7.0.7.

4

Can CVE-2013-7456 lead to an exploit?

CVE-2013-7456 could potentially be exploited by attackers to cause a denial of service through crafted images.

5

Which software should I check for CVE-2013-7456 vulnerabilities?

Check if you are using vulnerable versions of the GD Graphics Library or PHP that are affected by CVE-2013-7456.

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