Skip to content
Noroxi
CVE-2004-0990· NVD / CVE Program· CNA mitre

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

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.

CriticalCVSS 10.0 · v2.0—Proof of concept Fix available
Published
Mar 1, 2005
Updated
Jun 16, 2026
EPSS
28.3% · 98th percentile
CWE
—
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

48

Plan

Add it to your regular patch cycle.

CVSS
40 / 40 · 10.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
8 / 30 · 28.3%

Affected systems

VendorProduct
gd graphics librarygdlib
openpkgopenpkg
gentoolinux
susesuse linux
trustixsecure 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.15
  • 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
  • gd graphics library gdlib2.0.28
  • gentoo linuxall versions
  • openpkg openpkg2.1
  • openpkg openpkg2.2
  • openpkg openpkgcurrent
  • suse suse linux8.0
  • suse suse linux8.1
  • suse suse linux8.2
  • suse suse linux9.0
  • suse suse linux9.1
  • suse suse linux9.2

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12libgd2before 2.0.30-12.0.30-1
Debian:3.0libgdbefore 1.8.4-17.woody41.8.4-17.woody4
Debian:3.0libgdbefore 1.8.4-17.woody31.8.4-17.woody3
Debian:3.0libgd2before 2.0.1-10woody22.0.1-10woody2
Debian:3.0libgd2before 2.0.1-10woody12.0.1-10woody1
Red Hat:enterprise_linux:3::asgdbefore 0:1.8.4-12.3.10:1.8.4-12.3.1
Red Hat:enterprise_linux:3::asgd-debuginfobefore 0:1.8.4-12.3.10:1.8.4-12.3.1
Red Hat:enterprise_linux:3::asgd-develbefore 0:1.8.4-12.3.10:1.8.4-12.3.1
Red Hat:enterprise_linux:3::asgd-progsbefore 0:1.8.4-12.3.10:1.8.4-12.3.1

Other highest-scoring records for the same primary product.

  • CVE-2004-0941Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to execute arbitrary code via mal
    43Plan
  • CVE-2007-3475The GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of service (crash) via a GIF image tha
    18Monitor
  • 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 of
    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 remot
    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 / packageFixed versionSource
debian:libgd1.8.4-17.woody3 · Debian:3.0Package registry (OSV)
debian:libgd22.0.30-1 · Debian:12Package registry (OSV)
red hat:gd0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:gd-debuginfo0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:gd-devel0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:gd-progs0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::asPackage registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrylocal2004-10-26

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.

  1. First PoC-126 d
  2. Published
  3. TodaySep 30, 2026+7884 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

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.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records