Input validation error in PHP - CVE-2007-3996

 

Input validation error in PHP - CVE-2007-3996

Published: September 29, 2017 / Updated: June 8, 2025


Vulnerability identifier: #VU110376
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-3996
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

Multiple integer overflows in libgd in PHP before 5.2.4 allow remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a large (1) srcW or (2) srcH value to the (a) gdImageCopyResized function, or a large (3) sy (height) or (4) sx (width) value to the (b) gdImageCreate or the (c) gdImageCreateTrueColor function.


Affected software

PHP

How to mitigate CVE-2007-3996

Install update from vendor's website.

PHP - update to 5.2.4

External References

Related Security Bulletins