CVE-2007-3996: Integer Overflow

Published Sep 4, 2007
·
Updated

http://www.php.net/releases/524.php

Fixed several integer overflows inside the GD extension (Reported by Mattias Bengtsson)

Other sources

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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.2.4

Event History

Sep 4, 2007
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
06:17 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·06:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·10:00 PM
Sep 5, 2007
Data Sourced
via Red Hat·08:50 AM
DescriptionSeverityAffected Software
Sep 29, 2017
Data Sourced
01:29 AM
RemedySeverity

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