Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgd2 | 2.0.36~rc1~dfsg-3.1 | — |
| Debian 14 | libwmf | No fix yet | — |
| Debian 14 | racket | 5.0.2-1 | — |
| Debian 13 | libgd2 | 2.0.36~rc1~dfsg-3.1 | — |
| Debian 13 | libwmf | No fix yet | — |
| Debian 13 | racket | 5.0.2-1 | — |
| Debian 12 | libgd2 | 2.0.36~rc1~dfsg-3.1 | — |
| Debian 12 | libwmf | No fix yet | — |
| Debian 12 | racket | 5.0.2-1 | — |
| Debian 5.0 | libgd2 | 2.0.36~rc1~dfsg-3+lenny1 | DSA-1936-1 |
| Debian 4.0 | libgd2 | 2.0.33-5.2etch2 | DSA-1936-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | gd +2 | 2.0.33-9.4.el5_4.2 | RHSA-2010:0003 |
| RHEL 5 | php +18 | 5.1.6-24.el5_4.5 | RHSA-2010:0040 |
| RHEL 4 | gd +2 | 2.0.28-5.4E.el4_8.1 | RHSA-2010:0003 |
| RHEL 4 | php +13 | 4.3.9-3.29 | RHSA-2010:0040 |
| RHEL 3 | php +6 | 4.3.2-54.ent | RHSA-2010:0040 |
Advisories 3
- RHSA-2010:0003 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2010:0040 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1936-1 libgd2 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- MDVSA-2009:285 vendor-advisory
- 37069 third-party-advisory
- RHSA-2010:0003 vendor-advisory
- 37080 third-party-advisory
- 36712 vdb-entry
- 38055 third-party-advisory
- ADV-2009-2929 vdb-entry
- [oss-security] 20091015 Re: CVE Request -- PHP 5 - 5.2.11 mailing-list
- oval:org.mitre.oval:def:11199 vdb-entry signature
- http://svn.php.net/viewvc?view=revision&revision=289557
- [oss-security] 20091120 Re: CVE request: php 5.3.1 update mailing-list
- ADV-2009-2930 vdb-entry