SecurityContext

CVE-2007-3996: PHP libgd - Integer Overflow

  • Cve: CVE-2007-3996
  • Name: PHP libgd - Integer Overflow
  • 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.
  • Impact: Attackers can cause application crashes or execute arbitrary code remotely, leading to potential system compromise.
  • Remediation: Update PHP to version 5.2.4 or later to fix the vulnerabilities.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
  • Epss score: 0.04219
  • Epss percentile: 0.91239
  • Assignee: [email protected]
  • Published at: 2007-09-04T18:17:00Z
  • Age in days: 7021
  • Modified at: 2026-06-16T22:43:12Z
  • Patch available: yes
  • References total: 40
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2007-3996
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-189—

References

Same in every row:

  • Source: nvd
UrlTags
http://secunia.com/advisories/26642Patch, Vendor Advisory
http://secweb.se/en/advisories/php-imagecopyresized-integer-overflow/Patch
http://www.php.net/ChangeLog-5.php#5.2.4Patch
http://bugs.gentoo.org/show_bug.cgi?id=201546
http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
http://rhn.redhat.com/errata/RHSA-2007-0889.html
http://secunia.com/advisories/26822
http://secunia.com/advisories/26838
http://secunia.com/advisories/26871
http://secunia.com/advisories/26895

Products

ProductAffectedPlatform boundSourcesUrl
php:php<= 5.2.3nonvd/v1/products/php/php

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 6200906
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports