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

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

Affected products (13)

More vulnerabilities in Libgd Gd Graphics Library

All CVEs affecting Libgd Gd Graphics Library →

Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities

Browse all CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: