Description
Array index error in gd_gif_in.c in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of service (crash and heap corruption) via large color index values in crafted image data, which results in a segmentation fault.
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 14 | libwmf | No fix yet | — |
| Debian 14 | racket | 5.0.2-1 | — |
| Debian 13 | libgd2 | 2.0.35.dfsg-1 | — |
| Debian 13 | libwmf | No fix yet | — |
| Debian 13 | racket | 5.0.2-1 | — |
| Debian 12 | libgd2 | 2.0.35.dfsg-1 | — |
| Debian 12 | libwmf | No fix yet | — |
| Debian 12 | racket | 5.0.2-1 | — |
| Debian 4.0 | libgd2 | 2.0.33-5.2etch1 | DSA-1613-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 4 | gd +2 | 2.0.28-5.4E.el4_6.1 | RHSA-2008:0146 |
Advisories 2
- RHSA-2008:0146 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1613-1 libgd2 - multiple vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 37741 vdb-entry
- http://bugs.libgd.org/?do=details&task_id=87
- 2007-0024 vendor-advisory
- MDKSA-2007:164 vendor-advisory
- 29157 third-party-advisory
- DSA-1613 vendor-advisory
- oval:org.mitre.oval:def:10348 vdb-entry signature
- http://www.libgd.org/ReleaseNote020035
- 26415 third-party-advisory
- https://issues.rpath.com/browse/RPL-1643
- https://bugzilla.redhat.com/show_bug.cgi?id=277421
- GLSA-200805-13 vendor-advisory
- 20070907 FLEA-2007-0052-1 gd mailing-list
- 26467 third-party-advisory
- 31168 third-party-advisory
- 42813 third-party-advisory
- GLSA-200708-05 vendor-advisory
- 30168 third-party-advisory
- FEDORA-2007-692 vendor-advisory
- ADV-2011-0022 vdb-entry
- 25860 third-party-advisory
- 26663 third-party-advisory
- FEDORA-2010-19033 vendor-advisory
- 26856 third-party-advisory
- 26272 third-party-advisory
- GLSA-200711-34 vendor-advisory
- RHSA-2008:0146 vendor-advisory
- FEDORA-2010-19022 vendor-advisory
- 24651 vdb-entry
- MDKSA-2007:153 vendor-advisory
- 26766 third-party-advisory
- 26390 third-party-advisory
- SUSE-SR:2007:015 vendor-advisory
- FEDORA-2007-2055 vendor-advisory