CVE-2009-3546

NameCVE-2009-3546
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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-1936-1
NVD severityhigh (attack range: remote)
Debian Bugs552534, 601525

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libgd2 (PTS)wheezy2.0.36~rc1~dfsg-6.1+deb7u2fixed
wheezy (security)2.0.36~rc1~dfsg-6.1+deb7u10fixed
jessie2.1.0-5+deb8u9fixed
jessie (security)2.1.0-5+deb8u11fixed
stretch (security), stretch2.2.4-2+deb9u2fixed
buster, sid2.2.5-3fixed
libwmf (PTS)wheezy0.2.8.4-10.3+deb7u1vulnerable
wheezy (security)0.2.8.4-10.3+deb7u2vulnerable
jessie0.2.8.4-10.3+deb8u2vulnerable
jessie (security)0.2.8.4-10.3+deb8u1vulnerable
stretch0.2.8.4-10.6vulnerable
buster, sid0.2.8.4-12vulnerable
php5 (PTS)wheezy5.4.45-0+deb7u2fixed
wheezy (security)5.4.45-0+deb7u11fixed
jessie (security), jessie5.6.30+dfsg-0+deb8u1fixed
racket (PTS)wheezy5.2.1+g6~92c8784+dfsg2-2+deb7u1fixed
jessie6.1-4fixed
stretch6.7-3fixed
buster, sid6.10.1+dfsg1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libgd2source(unstable)2.0.36~rc1~dfsg-3.1medium552534
libgd2sourceetch2.0.33-5.2etch2highDSA-1936-1
libgd2sourcelenny2.0.36~rc1~dfsg-3+lenny1highDSA-1936-1
libwmfsource(unstable)(unfixed)unimportant
php5source(unstable)(not affected)
racketsource(unstable)5.0.2-1unimportant601525

Notes

Only present in one of the sample pl-scheme packages (plot)
- php5 <not-affected> (the php packages use the system libgd2)
http://svn.php.net/viewvc?view=revision&revision=289557
<20091015173822.084de220@redhat.com> in OSS-sec

Search for package or bug name: Reporting problems