CVE-2009-3546

Summary

CVECVE-2009-3546
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2009-10-19 20:00:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionThe _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.

Risk And Classification

Primary CVSS: v2.0 9.3 from [email protected]

AV:N/AC:M/Au:N/C:C/I:C/A:C

Problem Types: CWE-119 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:N/AC:M/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libgd Gd Graphics Library 2.0.33 All All All
Application Libgd Gd Graphics Library 2.0.34 All All All
Application Libgd Gd Graphics Library 2.0.34 rc1 All All
Application Libgd Gd Graphics Library 2.0.34 rc2 All All
Application Libgd Gd Graphics Library 2.0.35 All All All
Application Libgd Gd Graphics Library 2.0.35 rc1 All All
Application Libgd Gd Graphics Library 2.0.35 rc2 All All
Application Libgd Gd Graphics Library 2.0.35 rc3 All All
Application Libgd Gd Graphics Library 2.0.35 rc4 All All
Application Libgd Gd Graphics Library 2.0.35 rc5 All All
Application Libgd Gd Graphics Library 2.0.36 rc1 All All
Application Php Php 5.2.11 All All All
Application Php Php 5.3.0 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Support / Security / Advisories / / MDVSA-2009:285 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Patch, Vendor Advisory
Repository / Oval Repository af854a3a-2127-422b-91ae-364da2661108 oval.cisecurity.org
PHP GD Extension "_gdGetColors()" Buffer Overflow Vulnerability - Secunia Advisories - Vulnerability Information - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
GD Graphics Library "_gdGetColors()" Buffer Overflow Vulnerability - Secunia Advisories - Vulnerability Information - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
PHP: Revision 289557 af854a3a-2127-422b-91ae-364da2661108 svn.php.net
'Re: [oss-security] CVE Request -- PHP 5 - 5.2.11' - MARC af854a3a-2127-422b-91ae-364da2661108 marc.info
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Vendor Advisory
oss-security - Re: CVE request: php 5.3.1 update af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
GD Graphics Library '_gdGetColors' Remote Buffer Overflow Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
Red Hat Customer Portal MITRE access.redhat.com
Red Hat Customer Portal MITRE access.redhat.com
access.redhat.com | CVE-2009-3546 MITRE access.redhat.com
529213 – (CVE-2009-3546) CVE-2009-3546 gd: insufficient input validation in _gdGetColors() MITRE bugzilla.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report