CVE-2007-3996: Integer Overflow

Published Sep 4, 2007
·
Updated

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

1 affected component
PHP PHP<=5.2.3

Event History

Sep 4, 2007
CVE Published
06:17 PM
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2007-3996?

CVE-2007-3996 is categorized as a high severity vulnerability due to potential remote code execution and denial of service.

2

How do I fix CVE-2007-3996?

To fix CVE-2007-3996, upgrade PHP to version 5.2.4 or later.

3

What software versions are affected by CVE-2007-3996?

CVE-2007-3996 affects PHP versions up to and including 5.2.3.

4

What types of attacks can be executed through CVE-2007-3996?

CVE-2007-3996 allows attackers to exploit integer overflow vulnerabilities that can lead to application crashes or arbitrary code execution.

5

Which functions in libgd are primarily affected by CVE-2007-3996?

The gdImageCopyResized function is primarily affected by CVE-2007-3996, particularly with large srcW, srcH, sy, or sx values.

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