CVE-2004-0941: Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to execute arbitrary code via…
Noroxi assessment
Priority: Plan (action score 43/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 10.6% (FIRST EPSS); higher than 95.8% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: libgd2 (Debian:12) 2.0.33-1.1; libgd (Debian:3.0) 1.8.4-17.woody4; libgd2 (Debian:3.0) 2.0.1-10woody2.
Add it to your regular patch cycle. Upgrade to libgd2 (Debian:12) 2.0.33-1.1; libgd (Debian:3.0) 1.8.4-17.woody4; libgd2 (Debian:3.0) 2.0.1-10woody2 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Feb 9, 2005
- Updated
- Jun 16, 2026
- EPSS
- 10.6% · 95th percentile
- CWE
- —
Report tools
Action score
43
Add it to your regular patch cycle.
- CVSS
- 40 / 40 · 10.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 10.6%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| gd graphics library | gdlib | cpe:2.3:a:gd_graphics_library:gdlib |
| trustix | secure linux | cpe:2.3:o:trustix:secure_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- gd graphics library gdlib1.8.4
- gd graphics library gdlib2.0.1
- gd graphics library gdlib2.0.20
- gd graphics library gdlib2.0.21
- gd graphics library gdlib2.0.22
- gd graphics library gdlib2.0.23
- gd graphics library gdlib2.0.26
- gd graphics library gdlib2.0.27
+6 more rows
- gd graphics library gdlib2.0.28
- gd graphics library gdlib2.0.33
- trustix secure linux1.5
- trustix secure linux2.0
- trustix secure linux2.1
- trustix secure linux2.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libgd2 | before 2.0.33-1.1 | 2.0.33-1.1 |
| Debian:3.0 | libgd | before 1.8.4-17.woody4 | 1.8.4-17.woody4 |
| Debian:3.0 | libgd2 | before 2.0.1-10woody2 | 2.0.1-10woody2 |
| Red Hat:enterprise_linux:3::as | gd | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-debuginfo | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-devel | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-progs | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:4::as | gd | before 0:2.0.28-4.4E.1 | 0:2.0.28-4.4E.1 |
| Red Hat:enterprise_linux:4::as | gd-debuginfo | before 0:2.0.28-4.4E.1 | 0:2.0.28-4.4E.1 |
| Red Hat:enterprise_linux:4::as | gd-devel | before 0:2.0.28-4.4E.1 | 0:2.0.28-4.4E.1 |
| Red Hat:enterprise_linux:4::as | gd-progs | before 0:2.0.28-4.4E.1 | 0:2.0.28-4.4E.1 |
Same product
gd graphics library: all recordsOther highest-scoring records for the same primary product.
- CVE-2004-0990Integer overflow in GD Graphics Library libgd 2.0.28 (libgd2), and possibly other versions, allows remote attackers to cause a denial of…48Plan
- CVE-2007-3476Array 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…18Monitor
- CVE-2007-3478Race condition in gdImageStringFTEx (gdft_draw_bitmap) in gdft.c in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted…18Monitor
Published before and after this one in the same product
- Later →CVE-2007-3475Jun 28, 2007 · The GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of service (crash) via a GIF image…18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libgd | 1.8.4-17.woody4 · Debian:3.0 | Package registry (OSV) |
| debian:libgd2 | 2.0.33-1.1 · Debian:12 | Package registry (OSV) |
| red hat:gd | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-debuginfo | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-devel | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-progs | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
—
CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (17 more)Show less
- secunia.com/advisories/18686
- secunia.com/advisories/20824
- secunia.com/advisories/21050
- www.ciac.org/ciac/bulletins/p-071.shtml
- www.debian.org/security/2004/dsa-601
- www.mandriva.com/security/advisories?name=MDKSA-2006:113
- www.mandriva.com/security/advisories?name=MDKSA-2006:114
- www.mandriva.com/security/advisories?name=MDKSA-2006:122
- www.redhat.com/support/errata/RHSA-2004-638.html
- www.redhat.com/support/errata/RHSA-2006-0194.html
- www.securityfocus.com/bid/11663
- www.trustix.org/errata/2004/0058
- exchange.xforce.ibmcloud.com/vulnerabilities/18048
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11176
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1195
- www.ubuntu.com/usn/usn-25-1/
- www.ubuntu.com/usn/usn-33-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.