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 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: 2005-02-09 Last update: 2026-04-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2004-0941 is rated High Risk (72.1/100): CVSS Critical severity, with high exploitation likelihood (EPSS 14.04%, 94th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2004-0941

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-12 14.99% 14.04% -0.95%
2 2026-04-11 11.93% 14.99% +3.06%
3 2025-12-01 11.93%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2004-0941

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
10.0 2.0 HIGH
AV:N/AC:L/Au:N/C:C/I:C/A:C Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
10.0 10.0 [email protected]

Weakness enumeration for CVE-2004-0941

OS Trackers for CVE-2004-0941

vendor priority summary link
debian not yet assigned CVE-2004-0941 not yet assigned priority: Debian including 1 source packages (libgd2), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2004-0941
redhat low https://access.redhat.com/security/cve/CVE-2004-0941
ubuntu medium CVE-2004-0941 medium priority: Ubuntu including 2 source packages (libgd, libgd2), 8 status rows across 4 suites (dapper, edgy, feisty, upstream): released 6, needs-triage 2. https://ubuntu.com/security/CVE-2004-0941

Vendor comments (NVD) for CVE-2004-0941

  • Red Hat (2007-03-14T00:00:00)

    Red Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch.

Affected software / configurations for CVE-2004-0941

Vendor Product Version Raw CPE
gd_graphics_library gdlib 1.8.4 cpe:2.3:a:gd_graphics_library:gdlib:1.8.4:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.1 cpe:2.3:a:gd_graphics_library:gdlib:2.0.1:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.20 cpe:2.3:a:gd_graphics_library:gdlib:2.0.20:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.21 cpe:2.3:a:gd_graphics_library:gdlib:2.0.21:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.22 cpe:2.3:a:gd_graphics_library:gdlib:2.0.22:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.23 cpe:2.3:a:gd_graphics_library:gdlib:2.0.23:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.26 cpe:2.3:a:gd_graphics_library:gdlib:2.0.26:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.27 cpe:2.3:a:gd_graphics_library:gdlib:2.0.27:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.28 cpe:2.3:a:gd_graphics_library:gdlib:2.0.28:*:*:*:*:*:*:*
gd_graphics_library gdlib 2.0.33 cpe:2.3:a:gd_graphics_library:gdlib:2.0.33:*:*:*:*:*:*:*
trustix secure_linux 1.5 cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:*
trustix secure_linux 2.0 cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:*
trustix secure_linux 2.1 cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:*
trustix secure_linux 2.2 cpe:2.3:o:trustix:secure_linux:2.2:*:*:*:*:*:*:*

References for CVE-2004-0941

URL Tags
http://secunia.com/advisories/13179/
http://secunia.com/advisories/18686
http://secunia.com/advisories/20824
http://secunia.com/advisories/21050
http://www.ciac.org/ciac/bulletins/p-071.shtml
http://www.debian.org/security/2004/dsa-601
http://www.mandriva.com/security/advisories?name=MDKSA-2006:113
http://www.mandriva.com/security/advisories?name=MDKSA-2006:114
http://www.mandriva.com/security/advisories?name=MDKSA-2006:122
http://www.redhat.com/support/errata/RHSA-2004-638.html
http://www.redhat.com/support/errata/RHSA-2006-0194.html
http://www.securityfocus.com/bid/11663 Patch Vendor Advisory
http://www.trustix.org/errata/2004/0058 Patch Vendor Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/18048
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11176
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1195
https://www.ubuntu.com/usn/usn-25-1/
https://www.ubuntu.com/usn/usn-33-1/
cvelogic Threat Intelligence