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.
- Published
- Mar 1, 2005
- Updated
- Jun 16, 2026
- EPSS
- 28.3% · 98th percentile
- CWE
- —
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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
| Vendor | Product | CPE |
|---|---|---|
| gd graphics library | gdlib | cpe:2.3:a:gd_graphics_library:gdlib |
| openpkg | openpkg | cpe:2.3:a:openpkg:openpkg |
| gentoo | linux | cpe:2.3:o:gentoo:linux |
| suse | suse linux | cpe:2.3:o:suse:suse_linux |
| trustix | secure linux | cpe:2.3:o:trustix:secure_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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libgd2 | before 2.0.30-1 | 2.0.30-1 |
| Debian:3.0 | libgd | before 1.8.4-17.woody4 | 1.8.4-17.woody4 |
| Debian:3.0 | libgd | before 1.8.4-17.woody3 | 1.8.4-17.woody3 |
| Debian:3.0 | libgd2 | before 2.0.1-10woody2 | 2.0.1-10woody2 |
| Debian:3.0 | libgd2 | before 2.0.1-10woody1 | 2.0.1-10woody1 |
| Red Hat:enterprise_linux:3::as | gd | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-debuginfo | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-devel | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
| Red Hat:enterprise_linux:3::as | gd-progs | before 0:1.8.4-12.3.1 | 0:1.8.4-12.3.1 |
Same product
gd graphics library: all recordsOther 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 mal43Plan
- 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 tha18Monitor
- 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 of18Monitor
- 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 remot18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libgd | 1.8.4-17.woody3 · Debian:3.0 | Package registry (OSV) |
| debian:libgd2 | 2.0.30-1 · Debian:12 | Package registry (OSV) |
| red hat:gd | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-debuginfo | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-devel | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:gd-progs | 0:1.8.4-12.3.1 · Red Hat:enterprise_linux:3::as | Package 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.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2004-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.
- First PoC-126 d
- Published
- TodaySep 30, 2026+7884 d
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.
Credits
All researchersFinders, 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 helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.suse.com/archive/suse-security-announce/2006-Feb/0001.html
- marc.info/?l=bugtraq&m=109882489302099&w=2
- secunia.com/advisories/18717
- secunia.com/advisories/20824
- secunia.com/advisories/20866
- secunia.com/advisories/21050
- secunia.com/advisories/23783
- www.ciac.org/ciac/bulletins/p-071.shtml
- www.debian.org/security/2004/dsa-589
- www.debian.org/security/2004/dsa-591
- www.debian.org/security/2004/dsa-601
- www.debian.org/security/2004/dsa-602
- www.mandriva.com/security/advisories?name=MDKSA-2004:132
- www.mandriva.com/security/advisories?name=MDKSA-2006:113
- www.mandriva.com/security/advisories?name=MDKSA-2006:114
- www.mandriva.com/security/advisories?name=MDKSA-2006:122
- www.osvdb.org/11190
- www.redhat.com/support/errata/RHSA-2004-638.html
- www.securityfocus.com/bid/11523
- www.trustix.org/errata/2004/0058
Vendor advisories and official records. Exploit/PoC links are deliberately left out.