Description
Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to execute arbitrary code via malformed image files that trigger the overflows due to improper calls to the gdMalloc function, a different set of vulnerabilities than CVE-2004-0990.
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 ↗Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | gd +2 | 2.0.28-4.4E.1 | RHSA-2006:0194 |
| RHEL 3 | gd +2 | 1.8.4-12.3.1 | RHSA-2004:638 |
Advisories 4
- RHSA-2006:0194 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2004:638 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-602-1 libgd2 - integer overlow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-601-1 libgd1 - integer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- RHSA-2006:0194 vendor-advisory
- 11663 vdb-entry
- P-071 third-party-advisory government-resource
- 21050 third-party-advisory
- RHSA-2004:638 vendor-advisory
- 13179 third-party-advisory
- MDKSA-2006:113 vendor-advisory
- oval:org.mitre.oval:def:11176 vdb-entry signature
- oval:org.mitre.oval:def:1195 vdb-entry signature
- 2004-0058 vendor-advisory
- MDKSA-2006:114 vendor-advisory
- DSA-601 vendor-advisory
- MDKSA-2006:122 vendor-advisory
- USN-25-1 vendor-advisory
- gd-graphics-gdmalloc-bo(18048) vdb-entry
- 18686 third-party-advisory
- USN-33-1 vendor-advisory
- 20824 third-party-advisory