CVE-2007-3996
Reported by mitre · Published September 4, 2007
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php | php | 5.2.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| php | php |
Timeline
- Sep 4, 2007 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory (4 in total, the first dated here)
- Aug 8, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2007-3996
vulnetix vdb fixes CVE-2007-3996
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2007-3996/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 26822 third-party-advisoryx_refsource_SECUNIA
- GLSA-200712-13 vendor-advisoryx_refsource_GENTOO
- DSA-1613 vendor-advisoryx_refsource_DEBIAN
- RHSA-2007:0888 vendor-advisoryx_refsource_REDHAT
- php-gdimagecreate-bo(36382) vdb-entryx_refsource_XF
- oval:org.mitre.oval:def:11147 vdb-entrysignaturex_refsource_OVAL
- SUSE-SA:2008:004 vendor-advisoryx_refsource_SUSE
- 28658 third-party-advisoryx_refsource_SECUNIA
- FEDORA-2007-709 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- 26967 third-party-advisoryx_refsource_SECUNIA
- 27351 third-party-advisoryx_refsource_SECUNIA
- GLSA-200710-02 vendor-advisoryx_refsource_GENTOO
- 31168 third-party-advisoryx_refsource_SECUNIA
- x_refsource_CONFIRM
- 26930 third-party-advisoryx_refsource_SECUNIA
- 2007-0026 vendor-advisoryx_refsource_TRUSTIX
- RHSA-2007:0889 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
…and 20 more