Live threats

All CVEs / Libgd

CVE-2009-3546Libgd Gd Graphics Library

Critical 9.3 No auth neededHigh EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gd Graphics Library.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
libgdgd_graphics_library2.0.33
libgdgd_graphics_library2.0.34
libgdgd_graphics_library2.0.34
libgdgd_graphics_library2.0.34
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.35
libgdgd_graphics_library2.0.36
phpphp5.2.11
phpphp5.3.0

Official sources

References

Links published by the sources. Open them with care.