CVE-2026-77118
CVE-2026-77118 · Out-of-bounds write in GraphicsMagick PCD decoder
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.4 · High · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
graphicsmagick
- Versions
- ≥ 1.0.0, < 1.3.48: Affected (semver)
Update to 1.3.48
graphicsmagick
- Versions
- ≥ 0, < 1.4+really1.3.48-1: Affected (deb)
Update to 1.4+really1.3.48-1
graphicsmagick
- Versions
- ≥ 0, < 1.3.48: Affected (rpm)
Update to 1.3.48
graphicsmagick Debian:12
- Versions
- 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
- 1.4+really1.3.42-1.1
- 1.4+really1.3.42-1.1~exp1
- 1.4+really1.3.43-1
- 1.4+really1.3.44-1
- 1.4+really1.3.45+hg17689-1
- 1.4+really1.3.45+hg17692-1
- 1.4+really1.3.45+hg17696-1
- 1.4+really1.3.45-1
- 1.4+really1.3.46-1
- 1.4+really1.3.46-2
- 1.4+really1.3.48-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Debian:13
- Versions
- 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
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Debian:14
- Versions
- 1.4+really1.3.45+hg17696-1
- 1.4+really1.3.46-1
- 1.4+really1.3.46-2
- Affected ranges
- ECOSYSTEM: < 1.4+really1.3.48-1
Update to 1.4+really1.3.48-1
graphicsmagick Ubuntu:Pro:14.04:LTS
- Versions
- 1.3.16-1.1ubuntu2
- 1.3.16-1.1ubuntu3
- 1.3.18-1ubuntu3
- 1.3.18-1ubuntu3.1
- 1.3.18-1ubuntu3.1+esm1
- 1.3.18-1ubuntu3.1+esm2
- 1.3.18-1ubuntu3.1+esm3
- 1.3.18-1ubuntu3.1+esm4
- 1.3.18-1ubuntu3.1+esm5
- 1.3.18-1ubuntu3.1+esm6
- 1.3.18-1ubuntu3.1+esm7
- 1.3.18-1ubuntu3.1+esm8
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:Pro:16.04:LTS
- Versions
- 1.3.21-3
- 1.3.23-1
- 1.3.23-1build1
- 1.3.23-1ubuntu0.1
- 1.3.23-1ubuntu0.1+esm1
- 1.3.23-1ubuntu0.2
- 1.3.23-1ubuntu0.3
- 1.3.23-1ubuntu0.4
- 1.3.23-1ubuntu0.5
- 1.3.23-1ubuntu0.6
- 1.3.23-1ubuntu0.6+esm1
- 1.3.23-1ubuntu0.6+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:Pro:18.04:LTS
- Versions
- 1.3.26-15
- 1.3.26-16
- 1.3.26-19
- 1.3.27-1
- 1.3.27-2
- 1.3.27-3
- 1.3.28-1
- 1.3.28-2
- 1.3.28-2ubuntu0.1
- 1.3.28-2ubuntu0.1+esm1
- 1.3.28-2ubuntu0.2
- 1.3.28-2ubuntu0.2+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:Pro:20.04:LTS
- Versions
- 1.4+really1.3.33+hg16115-1
- 1.4+really1.3.33+hg16115-1build1
- 1.4+really1.3.33+hg16117-1
- 1.4+really1.3.34-1
- 1.4+really1.3.34-2
- 1.4+really1.3.34+hg16181-1
- 1.4+really1.3.35-1
- 1.4+really1.3.35-1ubuntu0.1~esm1
- 1.4+really1.3.35-1ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:Pro:22.04:LTS
- Versions
- 1.4+really1.3.36+hg16481-2
- 1.4+really1.3.37-1
- 1.4+really1.3.37-1build1
- 1.4+really1.3.37+hg16662-1ubuntu1
- 1.4+really1.3.38-1
- 1.4+really1.3.38-1ubuntu0.1
- 1.4+really1.3.38-1ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:Pro:24.04:LTS
- Versions
- 1.4+really1.3.42-1
- 1.4+really1.3.42-1build1
- 1.4+really1.3.42-1.1build1
- 1.4+really1.3.42-1.1build2
- 1.4+really1.3.42-1.1build3
- 1.4+really1.3.42-1.1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
graphicsmagick Ubuntu:26.04:LTS
- Versions
- 1.4+really1.3.45+hg17696-1build1
- 1.4+really1.3.46-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published