CVE-2009-3546Libgd Gd Graphics Library
Critical 9.3 No auth neededHigh EPSS
Follow: this CVE · Libgd · Libgd Gd Graphics Library We alert you by email or Slack (account required).
- Priority
- 72
- CVSS 2.0
- 9.3
- EPSS
- 10.2% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Oct 19, 2009
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
What happens
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.
What to do
- Apply the vendor's security update for Gd Graphics Library.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libgd | gd_graphics_library | 2.0.33 |
| libgd | gd_graphics_library | 2.0.34 |
| libgd | gd_graphics_library | 2.0.34 |
| libgd | gd_graphics_library | 2.0.34 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.35 |
| libgd | gd_graphics_library | 2.0.36 |
| php | php | 5.2.11 |
| php | php | 5.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- marc.info
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- svn.php.net
- www.mandriva.com
- www.openwall.com
- www.redhat.com
- www.securityfocus.com
- www.vupen.com Vendor Advisory
- www.vupen.com Patch Vendor Advisory
- oval.cisecurity.org