Home / Libgd / Gd Graphics Library / CVE-2009-3546
CVE-2009-3546: is it exploited, and which versions of Libgd Gd Graphics Library are affected and fixed?
CVE-2009-3546 is a memory corruption (buffer overflow) vulnerability in Libgd Gd Graphics Library. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: gd graphics library 2.0.33, gd graphics library 2.0.34, gd graphics library 2.0.35 and 3 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (9.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:51 UTC.
What is 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, 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.
From the CVE record by redhat, last updated August 7, 2024, 06:31 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libgd | gd graphics library | 2.0.33 | application |
| libgd | gd graphics library | 2.0.34 | application |
| libgd | gd graphics library | 2.0.35 | application |
| libgd | gd graphics library | 2.0.36 | application |
| php | php | 5.2.11 | application |
| php | php | 5.3.0 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:11 UTC.
How severe is CVE-2009-3546?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2009-3546 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 10.2% probability of exploitation activity in the next 30 days, percentile 95.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- MDVSA-2009:285 vendor-advisory, x_refsource_MANDRIVA
- 37069 third-party-advisory, x_refsource_SECUNIA
- RHSA-2010:0003 vendor-advisory, x_refsource_REDHAT
- 37080 third-party-advisory, x_refsource_SECUNIA
- 36712 vdb-entry, x_refsource_BID
- 38055 third-party-advisory, x_refsource_SECUNIA
- ADV-2009-2929 vdb-entry, x_refsource_VUPEN
- [oss-security] 20091015 Re: CVE Request -- PHP 5 - 5.2.11 mailing-list, x_refsource_MLIST
- oval:org.mitre.oval:def:11199 vdb-entry, signature, x_refsource_OVAL
- http://svn.php.net/viewvc?view=revision&revision=289557 x_refsource_CONFIRM
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update mailing-list, x_refsource_MLIST
- ADV-2009-2930 vdb-entry, x_refsource_VUPEN
When was it published, and where is the official record?
- Reserved
- October 5, 2009
- Published
- October 19, 2009, 19:27 UTC
- CVE record updated
- August 7, 2024, 06:31 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:11 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:51 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Gd Graphics Library?
- Jun 28, 2007CVE-2007-3477 Libgd Gd Graphics Library: n/a
- Jun 28, 2007CVE-2007-3474 Libgd Gd Graphics Library: n/a
- Jun 28, 2007CVE-2007-3473 Libgd Gd Graphics Library: n/a
- Jun 28, 2007CVE-2007-3472 Libgd Gd Graphics Library: n/a
Every CVE in Gd Graphics Library
Questions about CVE-2009-3546
Is CVE-2009-3546 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 10.2% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libgd Gd Graphics Library are affected by CVE-2009-3546?
gd graphics library 2.0.33, gd graphics library 2.0.34, gd graphics library 2.0.35, gd graphics library 2.0.36, php 5.2.11 and php 5.3.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2009-3546?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2009-3546?
High (9.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2009-3546?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.