
CVE catalog
CVE-2004-0941
libgd2: CVE-2004-0941
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 10.69% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libgd2 | sid | 2.3.3-14 | fixed |
| Debian | libgd2 | forky | 2.3.3-14 | fixed |
| Debian | libgd2 | trixie | 2.3.3-14~deb13u1 | fixed |
| Debian | libgd2 | trixie-security | 2.3.3-14~deb13u1 | fixed |
| Debian | libgd2 | bookworm | 2.3.3-9 | fixed |
| Debian | libgd2 | bookworm-security | 2.3.3-9+deb12u1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libgd2 | source | sid | 2.0.33-1.1 | not yet assigned | Not reported | Not reported |
| Debian | libgd2 | source | forky | 2.0.33-1.1 | not yet assigned | Not reported | Not reported |
| Debian | libgd2 | source | trixie | 2.0.33-1.1 | not yet assigned | Not reported | Not reported |
| Debian | libgd2 | source | bookworm | 2.0.33-1.1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libgd3]Unknown
Source package: [libgd2]
Details (4)
2.3.3-9· amd64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9· arm64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· amd64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· arm64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
- [libgd-dev]Unknown
Source package: [libgd2]
Details (4)
2.3.3-9· amd64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9· arm64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· amd64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· arm64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
- [libgd-tools]Unknown
Source package: [libgd2]
Details (4)
2.3.3-9· amd64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9· arm64 · bookwormFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· amd64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
2.3.3-9+deb12u1· arm64 · bookworm-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12
[Debian 13 (Trixie)]
- [libgd3]Unknown
Source package: [libgd2]
Details (4)
2.3.3-13· amd64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-13· arm64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· amd64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· arm64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
- [libgd-dev]Unknown
Source package: [libgd2]
Details (4)
2.3.3-13· amd64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-13· arm64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· amd64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· arm64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
- [libgd-tools]Unknown
Source package: [libgd2]
Details (4)
2.3.3-13· amd64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-13· arm64 · trixieFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· amd64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
2.3.3-14~deb13u1· arm64 · trixie-securityFixed · Fixed:
2.0.33-1.1dsa · libgd2 · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2004:638]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2004-0941]
- [https://osv.dev/vulnerability/DSA-601-1]
- [https://osv.dev/vulnerability/DSA-602-1]
- [https://security-tracker.debian.org/tracker/CVE-2004-0941]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]