Skip to content
OpenAdvisories
Unscored Public exploit CVE-2004-0990 EUVD-2004-0988GHSA-23x9-mmjc-x474

Integer overflow in GD Graphics Library libgd 2.0.28 (libgd2), and possibly other versions, allows remote attackers to cause a denial of se…

Published Oct 28, 2004 · Updated Aug 8, 2024 · Assigned by mitre

Description

Integer overflow in GD Graphics Library libgd 2.0.28 (libgd2), and possibly other versions, allows remote attackers to cause a denial of service and possibly execute arbitrary code via PNG image files with large image rows values that lead to a heap-based buffer overflow in the gdImageCreateFromPngCtx function, a different set of vulnerabilities than CVE-2004-0941.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libgd2 2.0.30-1 —
Debian 13 libgd2 2.0.30-1 —
Debian 12 libgd2 2.0.30-1 —
Debian 3.0 libgd 1.8.4-17.woody3 DSA-601-1, DSA-591-1, DSA-589-1
Debian 3.0 libgd2 2.0.1-10woody1 DSA-602-1, DSA-591-1
ReleasePackageFixed inAdvisory
RHEL 3 gd +2 1.8.4-12.3.1 RHSA-2004:638

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References