CVE-2026-77118
published high CVSS 4.0 · 8.4Out-of-bounds write in GraphicsMagick PCD decoder
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GraphicsMagick Group | — | GraphicsMagick1.0.0 to < 1.3.48 · Other versions: unaffected · Platforms: Linux, Windows, macOS | Affected | Not stated | seal |
| Debian | — | graphicsmagick0 to < 1.4+really1.3.48-1 · Other versions: unaffected | Affected | Not stated | seal |
| Fedora Project | — | GraphicsMagick0 to < 1.3.48 · Other versions: unaffected | Affected | Not stated | seal |
| Amazon Linux | AL2 | Release evaluationALAS2GRAPHICSMAGICK1.3-2026-005 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1960 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | GraphicsMagickaarch64 | Listed in advisory | Not stated | ALAS2GRAPHICSMAGICK1.3-2026-005 |
| Amazon Linux | AL2 | GraphicsMagicknoarch | Listed in advisory | Not stated | ALAS2GRAPHICSMAGICK1.3-2026-005 |
| Amazon Linux | AL2 | GraphicsMagicksrc | Listed in advisory | Not stated | ALAS2GRAPHICSMAGICK1.3-2026-005 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | GraphicsMagickx86_64 | Listed in advisory | Not stated | ALAS2GRAPHICSMAGICK1.3-2026-005 |
| Amazon Linux | AL2023 | GraphicsMagickaarch64 | Listed in advisory | Not stated | ALAS2023-2026-1960 |
| Amazon Linux | AL2023 | GraphicsMagicknoarch | Listed in advisory | Not stated | ALAS2023-2026-1960 |
| Amazon Linux | AL2023 | GraphicsMagicksrc | Listed in advisory | Not stated | ALAS2023-2026-1960 |
| Amazon Linux | AL2023 | GraphicsMagickx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1960 |
Description
A heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick. In DecodeImage() (coders/pcd.c), the Huffman delta loop advances its output pointer with q++ after every decoded delta and never checks it against the end of the heap-allocated luma/chroma plane buffers. The pointer is repositioned only when a sync marker introduces a new plane/row; between sync markers the run length is bounded solely by the input. A crafted PCD file that positions the pointer near the end of a plane and then supplies a long run of deltas with no intervening sync therefore walks the pointer past the end of the allocation and writes through it. Processing an untrusted PCD file — for example with gm convert or gm identify, or through any application linked against libGraphicsMagick — can corrupt heap memory beyond the buffers.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- seal · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GraphicsMagick Group | GraphicsMagick | 1.0.0 to < 1.3.48 (affected · semver)Default: unaffected | seal · cna |
| Debian | graphicsmagick | 0 to < 1.4+really1.3.48-1 (affected · deb)Default: unaffected | seal · cna |
| Fedora Project | GraphicsMagick | 0 to < 1.3.48 (affected · rpm)Default: unaffected | seal · cna |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds write
References
2- Upstream fix (released in 1.3.48) https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96
- GraphicsMagick 1.3.48 ChangeLog entry describing the fix and crediting the reporter https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog
Provider assertions
2seal · cna
Out-of-bounds write in GraphicsMagick PCD decoder
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 12f3c935fdcc7d7283767de00a75cc9112eafbcc954d6396a8353d00028b2884
- Ingested
- 23 Sep 2026, 09:32:39 UTC
- Source record
- Official CVE record