CWE
189 190
Advisory Published
Updated

CVE-2007-3996: Integer Overflow

First published: Tue Sep 04 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP<=5.2.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

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

  • How do I fix CVE-2007-3996?

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

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203