CVE-2004-0941: Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to
CVE-2004-0941 is a high-severity flaw (CVSS 10.0) affecting gdlib, secure linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 4%: very likely to be exploited
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 10.0 (High) |
| EPSS exploit chance | 10.7% (top 4%) |
| CISA exploited list | No |
| Published | 2005-02-09 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2004-0941?
gdlib: downgrade or apply the listed mitigation; secure linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2004-0941 being exploited?
CVE-2004-0941 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2004-0941 affect?
CVE-2004-0941 affects gdlib, secure linux. Severity is high (CVSS 10.0). 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 diff
How urgent is CVE-2004-0941?
Priority 64/100. Critical severity; EPSS top 4%: very likely to be exploited; On your watchlist
Related CVEs
- CVE-2007-3478 MEDIUM 4.3 UPGRADE Race condition in gdImageStringFTEx (gdft_draw_bitmap) in gdft.c in the GD Graphics Library (libgd) before 2.0
- CVE-2007-3476 MEDIUM 4.3 UPGRADE Array index error in gd_gif_in.c in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote
- CVE-2007-3475 MEDIUM 4.3 UPGRADE The GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of servi
- CVE-2004-0990 HIGH 10.0 DOWNGRADE DOWNGRADE Integer overflow in GD Graphics Library libgd 2.0.28 (libgd2), and possibly other versions, allows remote atta