CVE-2007-3996: PHP

Medium severity, CVSS 6.8. EPSS: 4.2% chance of exploitation in the next 30 days.

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 products

  • PHP PHP: up to and including 5.2.3

Published 2007-09-04. Last modified 2026-06-16.