CVE-2009-3546: 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, do
CVE-2009-3546 is a high-severity flaw (CVSS 9.3) affecting gd graphics library, php. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 4%: very likely to be exploited
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.3 (High) |
| EPSS exploit chance | 10.2% (top 4%) |
| CISA exploited list | No |
| Weakness | CWE-119 |
| Published | 2009-10-19 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2009-3546?
gd graphics library: downgrade or apply the listed mitigation; php: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2009-3546 being exploited?
CVE-2009-3546 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2009-3546 affect?
CVE-2009-3546 affects gd graphics library, php. Severity is high (CVSS 9.3). 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 bu
How urgent is CVE-2009-3546?
Priority 56/100. Critical severity; EPSS top 4%: very likely to be exploited
Software pages
Related CVEs
- CVE-2007-3477 MEDIUM 5.0 UPGRADE The (a) imagearc and (b) imagefilledarc functions in GD Graphics Library (libgd) before 2.0.35 allow attackers
- CVE-2007-3474 LOW 2.6 UPGRADE Multiple unspecified vulnerabilities in the GIF reader in the GD Graphics Library (libgd) before 2.0.35 have u
- CVE-2007-3473 MEDIUM 4.3 UPGRADE The gdImageCreateXbm function in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote att
- CVE-2007-3472 MEDIUM 4.3 UPGRADE Integer overflow in gdImageCreateTrueColor function in the GD Graphics Library (libgd) before 2.0.35 allows us
- CVE-2007-0455 HIGH 7.5 UPGRADE UPGRADE Buffer overflow in the gdImageStringFTEx function in gdft.c in GD Graphics Library 2.0.33 and earlier allows r