PT-2009-1066 · Php+3 · Php+5

Tomas Hoger

·

Published

2009-10-19

·

Updated

2025-08-13

·

CVE-2009-3546

CVSS v2.0

9.3

High

VectorAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions gd versions 2.0.28 through 2.0.33 gd-progs versions 2.0.28 through 2.0.33 gd-devel versions 2.0.28 through 2.0.33 PHP versions 5.2.11 and 5.3.x before 5.3.1
Description The issue is related to the gdGetColors function in gd gd.c, which does not properly verify a certain colorsTotal structure member. This might allow remote attackers to conduct buffer overflow or buffer over-read attacks via a crafted GD file. The vulnerability can be exploited remotely and may lead to disruption of confidentiality, integrity, and availability of protected information.
Recommendations For gd versions 2.0.28 through 2.0.33, consider updating to a version later than 2.0.33 or applying a patch if available. For gd-progs versions 2.0.28 through 2.0.33, consider updating to a version later than 2.0.33 or applying a patch if available. For gd-devel versions 2.0.28 through 2.0.33, consider updating to a version later than 2.0.33 or applying a patch if available. For PHP versions 5.2.11 and 5.3.x before 5.3.1, consider updating to version 5.3.1 or later. As a temporary workaround, consider restricting access to the gdGetColors function until a patch is available.

Fix

Buffer Overflow

Weakness Enumeration

Related Identifiers

BDU:2015-07206
BDU:2015-07207
BDU:2015-07209
BDU:2015-07210
BDU:2015-07212
BDU:2015-07213
BDU:2015-08543
BDU:2015-08544
BDU:2015-08545
BDU:2015-08546
BDU:2015-08547
BDU:2015-08548
BDU:2015-09409
CVE-2009-3546
DSA-1936-1
ECHO-0435-D140-FC4A
RHSA-2010:0003
RHSA-2010:0040
RHSA-2010_0003
RHSA-2010_0040

Affected Products

Debian
Php
Red Hat
Gd
Gd-Devel
Gd-Progs