CVE-2026-77118 Out-of-bounds write in GraphicsMagick PCD decoder
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/graphicsmagick(Debian 12) | = 1.4+really1.3.40-4; = 1.4+really1.3.40-4+deb12u1; = 1.4+really1.3.41-1; = 1.4+really1.3.42-1 +14 more | No fix listed | No fix yet |
| debian/graphicsmagick(Debian 13) | = 1.4+really1.3.45+hg17696-1; = 1.4+really1.3.46-1; = 1.4+really1.3.46-2; = 1.4+really1.3.48-1 +3 more | No fix listed | No fix yet |
| ubuntu/graphicsmagick(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/graphicsmagick(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/graphicsmagick(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| azure linux GraphicsMagick(Azure Linux 4.0) | < 0:1.3.48-10.azl4 | 0:1.3.48-10.azl4 | Fixed |
| debian linux | < 1.4+really1.3.48-1 | 1.4+really1.3.48-1 | Fixed |
| debian/graphicsmagick(Debian 14) | < 1.4+really1.3.48-1; = 1.4+really1.3.45+hg17696-1; = 1.4+really1.3.46-1; = 1.4+really1.3.46-2 | 1.4+really1.3.48-1 | Fixed |
| fedoraproject extra packages for enterprise linux | < 1.3.48 | 1.3.48 | Fixed |
| graphicsmagick | >= 1.0.0, < 1.3.48 | 1.3.48 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| graphicsmagick | >= 1.0.0, < 1.3.48 | 1.3.48 |
| debian linux | < 1.4+really1.3.48-1 | 1.4+really1.3.48-1 |
| fedoraproject extra packages for enterprise linux | < 1.3.48 | 1.3.48 |
| debian/graphicsmagick(Debian:12) | All versions | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.40-4 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.40-4+deb12u1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.41-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.42-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.42-1.1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.42-1.1~exp1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.43-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.44-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.45+hg17689-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.45+hg17692-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.45+hg17696-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.45-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.46-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.46-2 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.48-1 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.48-2 | No fix listed |
| debian/graphicsmagick(Debian:12) | = 1.4+really1.3.49-1 | No fix listed |
| debian/graphicsmagick(Debian:13) | All versions | No fix listed |
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.45+hg17696-1 | No fix listed |
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.46-1 | No fix listed |
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.46-2 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.48-1 | No fix listed |
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.48-2 | No fix listed |
| debian/graphicsmagick(Debian:13) | = 1.4+really1.3.49-1 | No fix listed |
| debian/graphicsmagick(Debian:14) | < 1.4+really1.3.48-1 | 1.4+really1.3.48-1 |
| debian/graphicsmagick(Debian:14) | = 1.4+really1.3.45+hg17696-1 | No fix listed |
| debian/graphicsmagick(Debian:14) | = 1.4+really1.3.46-1 | No fix listed |
| debian/graphicsmagick(Debian:14) | = 1.4+really1.3.46-2 | No fix listed |
| ubuntu/graphicsmagick(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/graphicsmagick(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/graphicsmagick(Ubuntu:26.04) | All versions | No fix listed |
| azure linux GraphicsMagick(Azure Linux:4.0) | < 0:1.3.48-10.azl4 | 0:1.3.48-10.azl4 |
References
- Upstream fix (released in 1.3.48) patch
- GraphicsMagick 1.3.48 ChangeLog entry describing the fix and crediting the reporter release-notes
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2520299 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-77118 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-63345 third-party-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory