CVE-2026-77118
published 2026-08-20CVE-2026-77118: 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…
PriorityP338high8.4CVSS 4.0
AVLACLATNPRNUIAVCHVIHVAHSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.17%
6.2th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | graphicsmagick | < 1.4+really1.3.48-1 | 1.4+really1.3.48-1 |
| fedora_project | graphicsmagick | < 1.3.48 | 1.3.48 |
| graphicsmagick_group | graphicsmagick | >= 1.0.0 < 1.3.48 | 1.3.48 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [epel-all]
bugzilla·2026-08-22·CVSS 8.4
CVE-2026-77118 [HIGH] CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [epel-all]
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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
Bugzilla
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [fedora-all]
bugzilla·2026-08-22·CVSS 8.4
CVE-2026-77118 [HIGH] CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [fedora-all]
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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 positio
Bugzilla
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file
bugzilla·2026-08-20·CVSS 8.4
CVE-2026-77118 [HIGH] CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file
CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file
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 g
2026-08-20
Published