# CVE-2026-77118: Out-of-bounds write in GraphicsMagick PCD decoder

- Priority: **Routine**
- Reason: Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-20 · Modified: 2026-08-26
- Aliases: UBUNTU-CVE-2026-77118, DEBIAN-CVE-2026-77118
- Record: https://cvemate.com/vulnerability/CVE-2026-77118 · JSON: https://cvemate.com/vulnerability/CVE-2026-77118/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v4.0, CVE.org) 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
- EPSS: 0.131%, percentile 2.859%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian graphicsmagick (Debian): All versions (No fix recorded) \| \< 1.4+really1.3.48-1
- ubuntu graphicsmagick (Ubuntu): All versions (No fix recorded)
- debian graphicsmagick: \< 1.4+really1.3.48-1
- fedora project graphicsmagick: \< 1.3.48
- graphicsmagick group graphicsmagick: ≥ 1.0.0, \< 1.3.48

## References

- <https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96>
- <https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog>
- <https://ubuntu.com/security/CVE-2026-77118>
- <https://www.cve.org/CVERecord?id=CVE-2026-77118>
- <https://security-tracker.debian.org/tracker/CVE-2026-77118>

---

Data as of 2026-12-05T02:58:30.073Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
