{"id":"CVE-2004-0941","aliases":["DEBIAN-CVE-2004-0941","DSA-601-1","DSA-602-1","EUVD-2004-0939","GHSA-5jw2-pr8r-5fc7","RHSA-2004:638","RHSA-2006:0194"],"status":"published","title":"Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote...","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.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.10693,"percentile":0.95842,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2004-11-19T05:00:00Z","modified":"2026-10-21T15:47:24Z","fixes":[{"ecosystem":"Debian:12","package":"libgd2","fixed_in":["2.0.33-1.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libgd2","fixed_in":["2.0.33-1.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libgd2","fixed_in":["2.0.33-1.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-debuginfo","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-devel","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-progs","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-debuginfo","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-devel","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-progs","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-debuginfo","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-devel","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-progs","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-debuginfo","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-devel","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-progs","fixed_in":["0:2.0.28-4.4E.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.33-1.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.33-1.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.33-1.1"}]}]},{"source":"osv","ecosystem":"Debian:3.0","package":"libgd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.4-17.woody4"}]}],"versions":["1.8.4-17.woody2"],"bundled":2},{"source":"osv","ecosystem":"Debian:3.0","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1-10woody2"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.8.4-12.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"gd-progs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.28-4.4E.1"}]}]}],"products":[{"vendor":"gd_graphics_library","product":"gdlib"},{"vendor":"trustix","product":"secure_linux"}],"references":[{"url":"http://www.redhat.com/support/errata/RHSA-2006-0194.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/11663","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://www.ciac.org/ciac/bulletins/p-071.shtml","tags":["third-party-advisory","government-resource","x_refsource_CIAC","x_transferred","web"]},{"url":"http://secunia.com/advisories/21050","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-638.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"http://secunia.com/advisories/13179/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:113","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11176","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1195","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"http://www.trustix.org/errata/2004/0058","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:114","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://www.debian.org/security/2004/dsa-601","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:122","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"https://www.ubuntu.com/usn/usn-25-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18048","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://secunia.com/advisories/18686","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://www.ubuntu.com/usn/usn-33-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/20824","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0941","tags":["advisory"]},{"url":"https://www.ubuntu.com/usn/usn-25-1"},{"url":"https://www.ubuntu.com/usn/usn-33-1"},{"url":"http://secunia.com/advisories/13179"},{"url":"https://github.com/advisories/GHSA-5jw2-pr8r-5fc7"},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-0941","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2004:638","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=137246","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=138808","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_638.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0941","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=175413","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0941","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0990","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617343","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0990","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0990","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2006:0194","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2006/rhsa-2006_0194.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0941","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.","status":"published","published":"2004-11-19T05:00:00Z","modified":"2024-08-08T00:31:48.138Z","updated_at":"2026-11-02T14:34:54.398187Z"}],"euvd":[{"id":"EUVD-2004-0939","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.","status":"published","published":"2004-11-19T05:00:00Z","modified":"2024-08-08T00:31:48Z","updated_at":"2026-11-03T01:15:17.239417Z"}],"ghsa":[{"id":"GHSA-5jw2-pr8r-5fc7","title":"Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote...","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.","status":"published","published":"2022-04-29T02:58:39Z","modified":"2025-04-03T04:08:01Z","updated_at":"2026-11-02T15:00:41.179225Z"}],"nvd":[{"id":"CVE-2004-0941","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.","status":"published","published":"2005-02-09T05:00:00Z","modified":"2026-06-16T22:06:42.713Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:53.662124Z"}],"osv":[{"id":"CVE-2004-0941","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.","status":"published","published":"2005-02-09T05:00:00Z","modified":"2026-04-10T03:36:26.471109Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2004-0941","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.","status":"published","published":"2005-02-09T05:00:00Z","modified":"2026-10-21T15:47:24.316802151Z","updated_at":"2026-11-02T15:45:22.55978Z"},{"id":"DSA-601-1","title":"libgd1 - integer overflow","status":"published","published":"2004-11-29T00:00:00Z","modified":"2026-03-09T02:09:16.773204Z","updated_at":"2026-11-02T15:46:18.296714Z"},{"id":"DSA-602-1","title":"libgd2 - integer overlow","status":"published","published":"2004-11-29T00:00:00Z","modified":"2026-03-09T02:10:06.357089Z","updated_at":"2026-11-02T15:46:18.296714Z"},{"id":"RHSA-2004:638","title":"Red Hat Security Advisory: gd security update","status":"published","published":"2024-11-05T16:25:36Z","modified":"2026-06-26T10:01:49Z","updated_at":"2026-11-02T15:52:59.135214Z"},{"id":"RHSA-2006:0194","title":"Red Hat Security Advisory: gd security update","status":"published","published":"2024-08-14T20:19:59Z","modified":"2026-06-26T10:04:17Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
