CVE-2009-3546: PHP GD Library - Buffer Overflow
- Cve: CVE-2009-3546
- Name: PHP GD Library - Buffer Overflow
- Description: The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD Graphics Library 2.x, does not properly verify a certain colorsTotal structure member, which might allow remote attackers to conduct buffer overflow or buffer over-read attacks via a crafted GD file, a different vulnerability than CVE-2009-3293. NOTE: some of these details are obtained from third party information.
- Impact: Remote attackers can execute arbitrary code or cause denial of service by exploiting crafted GD files.
- Remediation: Update to PHP 5.3.1 or later, and GD Graphics Library 2.x latest version.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.3
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
- Epss score: 0.10247
- Epss percentile: 0.95801
- Assignee: [email protected]
- Published at: 2009-10-19T20:00:00Z
- Age in days: 6245
- Modified at: 2026-06-16T23:11:49Z
- Patch available: yes
- References total: 12
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2009-3546
- 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
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | = 5.3.0, = 5.2.11 | no | nvd | /v1/products/php/php |
| libgd:gd_graphics_library | = 2.0.35 rc5, = 2.0.35 rc4, = 2.0.35 rc3, = 2.0.36 rc1, = 2.0.35, = 2.0.35 rc1, = 2.0.35 rc2, = 2.0.34, = 2.0.34 rc1, = 2.0.34 rc2, = 2.0.33 | no | nvd | /v1/products/libgd/gd_graphics_library |
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