The Vigil@nce team watches public vulnerabilities impacting your computers, and then offers security solutions, a database and tools to fix them.

vulnerability CVE-2013-7226 CVE-2013-7327 CVE-2013-7328

PHP: buffer overflow of imagecrop

Synthesis of the vulnerability

An attacker, who can transmit parameters to the imagecrop() function, can generate a buffer overflow of PHP, in order to trigger a denial of service, and possibly to execute code.
Impacted products: MBS, PHP, Ubuntu.
Severity: 2/4.
Creation date: 13/02/2014.
Identifiers: BID-65676, CERTFR-2014-AVI-132, CVE-2013-7226, CVE-2013-7327, CVE-2013-7328, CVE-2014-2020, MDVSA-2014:027, MDVSA-2014:059, USN-2126-1, VIGILANCE-VUL-14240.

Description of the vulnerability

Since PHP 5.5.0, the imagecrop() function is used to cut an image, using for example the following dimensions:
  $dimensions = array("x" => 10, "y" => 10, "width" => 50, "height" => 50);

However, if the position ("x") of the rectangle to cut is greater than the size of the image, an overflow occurs.

An attacker, who can transmit parameters to the imagecrop() function, can therefore generate a buffer overflow of PHP, in order to trigger a denial of service, and possibly to execute code.
Complete Vigil@nce bulletin.... (free trial)

Computer vulnerabilities tracking service

Vigil@nce provides software vulnerability analysis. The technology watch team tracks security threats targeting the computer system. The Vigil@nce team tracks computer vulnerabilities impacting systems and applications. The Vigil@nce security watch publishes vulnerability bulletins about threats impacting the information system.