Description
Buffer overflow in the gdImageStringFTEx function in gdft.c in GD Graphics Library 2.0.33 and earlier allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a crafted string with a JIS encoded font.
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.35.dfsg-1 | — |
| Debian 13 | libgd2 | 2.0.35.dfsg-1 | — |
| Debian 12 | libgd2 | 2.0.35.dfsg-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_1.1 | RHSA-2008:0146 |
| RHEL 5 | php +18 | 5.1.6-11.el5 | RHSA-2007:0153 |
| RHEL 4 | gd +2 | 2.0.28-5.4E.el4_6.1 | RHSA-2008:0146 |
| RHEL 4 | php +13 | 4.3.9-3.22.4 | RHSA-2007:0155 |
| RHEL 3 | php +6 | 4.3.2-40.ent | RHSA-2007:0155 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Application Stack 1 | php +18 | 5.1.6-3.el4s1.6 | RHSA-2007:0162 |
Advisories 5
- RHSA-2007:0162 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0155 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2008:0146 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2007:0153 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
- 24022 third-party-advisory
- 29157 third-party-advisory
- 24107 third-party-advisory
- 24143 third-party-advisory
- 22289 vdb-entry
- 20070418 rPSA-2007-0073-1 php php-mysql php-pgsql mailing-list
- ADV-2007-0400 vdb-entry
- 23916 third-party-advisory
- 24151 third-party-advisory
- RHSA-2007:0162 vendor-advisory
- 42813 third-party-advisory
- MDKSA-2007:038 vendor-advisory
- MDKSA-2007:035 vendor-advisory
- ADV-2011-0022 vdb-entry
- oval:org.mitre.oval:def:11303 vdb-entry signature
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=224607
- [security-announce] 20070208 rPSA-2007-0028-1 gd mailing-list
- FEDORA-2010-19033 vendor-advisory
- 24945 third-party-advisory
- https://issues.rpath.com/browse/RPL-1268
- MDKSA-2007:109 vendor-advisory
- RHSA-2008:0146 vendor-advisory
- 2007-0007 vendor-advisory
- 24053 third-party-advisory
- 24924 third-party-advisory
- 24052 third-party-advisory
- FEDORA-2010-19022 vendor-advisory
- RHSA-2007:0155 vendor-advisory
- 24965 third-party-advisory
- MDKSA-2007:036 vendor-advisory
- 25575 third-party-advisory
- FEDORA-2007-150 vendor-advisory
- https://issues.rpath.com/browse/RPL-1030
- USN-473-1 vendor-advisory
- RHSA-2007:0153 vendor-advisory