CVE-2009-3546
CVE-2009-3546 is a critical-severity vulnerability in Libgd Gd Graphics Library with a CVSS 2.0 base score of 9.3. Its EPSS exploit-prediction score of 10% places it in the 95th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-119.
Key facts
- Severity: Critical (CVSS 2.0 base score 9.3)
- EPSS exploit prediction: 10% (95th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Libgd Gd Graphics Library
- Published:
- Last modified:
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.
Frequently asked questions
- 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.
- How severe is CVE-2009-3546?
- CVE-2009-3546 has a CVSS 2.0 base score of 9.3, rated critical severity.
- Is CVE-2009-3546 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 10% (95th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2009-3546?
- CVE-2009-3546 primarily affects Libgd Gd Graphics Library. In total, 13 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2009-3546?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2009-3546 published?
- CVE-2009-3546 was published on 2009-10-19 and last updated on 2026-06-16.
References
- http://marc.info/?l=oss-security&m=125562113503923&w=2
- http://secunia.com/advisories/37069
- http://secunia.com/advisories/37080
- http://secunia.com/advisories/38055
- http://svn.php.net/viewvc?view=revision&revision=289557
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
- http://www.openwall.com/lists/oss-security/2009/11/20/5
- http://www.redhat.com/support/errata/RHSA-2010-0003.html
- http://www.securityfocus.com/bid/36712
- http://www.vupen.com/english/advisories/2009/2929
- http://www.vupen.com/english/advisories/2009/2930
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11199
Affected products (13)
- cpe:2.3:a:libgd:gd_graphics_library:2.0.33:*:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:*:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc1:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc2:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:*:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc1:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc2:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc3:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc4:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc5:*:*:*:*:*:*
- cpe:2.3:a:libgd:gd_graphics_library:2.0.36:rc1:*:*:*:*:*:*
- cpe:2.3:a:php:php:5.2.11:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:*
More vulnerabilities in Libgd Gd Graphics Library
- CVE-2007-3477 — Medium (CVSS 5.0): The (a) imagearc and (b) imagefilledarc functions in GD Graphics Library (libgd) before 2.0.35 allow attackers to cause…
- CVE-2007-3472 — Medium (CVSS 4.3): Integer overflow in gdImageCreateTrueColor function in the GD Graphics Library (libgd) before 2.0.35 allows…
- CVE-2007-3473 — Medium (CVSS 4.3): The gdImageCreateXbm function in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to…
- CVE-2007-3474 — Low (CVSS 2.6): Multiple unspecified vulnerabilities in the GIF reader in the GD Graphics Library (libgd) before 2.0.35 have…
All CVEs affecting Libgd Gd Graphics Library →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.
Threat intelligence
Threat-intel indicators referencing this CVE:
- 121.164.135.251 (ipv4-addr)