CVE-2013-7226: Buffer Overflow

Published Feb 13, 2014
·
Updated

A heap overflow vulnerability in PHP 5.5.0 and later was reported [1] in PHP's imagecrop() function. In code that used the imagecrop() function to crop untrusted images, this vulnerability could cause a crash of the script or, possibly, the execution of arbitrary code as the user running the PHP script.

This has been corrected in PHP 5.5.9 [2].

[1] https://bugs.php.net/bug.php?id=66356 [2] http://git.php.net/?p=php-src.git;a=commitdiff;h=8f4a5373bb71590352fd934028d6dde5bc18530b

External References:

http://www.php.net/ChangeLog-5.php#5.5.9

Other sources

Integer overflow in the gdImageCrop function in ext/gd/gd.c in PHP 5.5.x before 5.5.9 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via an imagecrop function call with a large x dimension value, leading to a heap-based buffer overflow.

Affected Software

21 affected componentsFixes available
redhat/php<5.5.10
5.5.10
PHP PHP=5.5.0-alpha1
PHP PHP=5.5.0-alpha2
PHP PHP=5.5.0-alpha3
PHP PHP=5.5.0-alpha4
PHP PHP=5.5.0-alpha5
PHP PHP=5.5.0-alpha6
PHP PHP=5.5.0-beta1
PHP PHP=5.5.0-beta2
PHP PHP=5.5.0-beta3
PHP PHP=5.5.0-beta4
PHP PHP=5.5.0-rc1
PHP PHP=5.5.0-rc2
PHP PHP=5.5.1
PHP PHP=5.5.2
PHP PHP=5.5.3
PHP PHP=5.5.4
PHP PHP=5.5.5
PHP PHP=5.5.6
PHP PHP=5.5.7
PHP PHP=5.5.8

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.5.10

Event History

Feb 13, 2014
Data Sourced
via Red Hat·11:54 PM
DescriptionSeverityAffected Software
Feb 18, 2014
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Data Sourced
via NVD·11:55 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-7226?

CVE-2013-7226 is considered to have a high severity due to the potential for remote code execution or denial of service.

2

How do I fix CVE-2013-7226?

To fix CVE-2013-7226, upgrade to PHP version 5.5.10 or later.

3

Which versions of PHP are affected by CVE-2013-7226?

CVE-2013-7226 affects PHP versions 5.5.0 up to, but not including, 5.5.10.

4

What is the impact of exploiting CVE-2013-7226?

Exploitation of CVE-2013-7226 could lead to a crash of the PHP script or the execution of arbitrary code.

5

What function in PHP is associated with CVE-2013-7226?

CVE-2013-7226 is associated with the imagecrop() function in PHP.

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