CVE-2026-77118

graphicsmagick: A heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick

CVE-2026-77118 is fixed in 11 products on 1 platform, first by ALAS2023-2026-1960, released July 20, 2026. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
n/a
important
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0017
6th 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.

Where it's fixed

ProductFixed inFixReleased
Linux
GraphicsMagick · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-c++ · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-c++-debuginfo · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-c++-devel · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-debuginfo · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-debugsource · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-devel · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-doc · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-perl · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
GraphicsMagick-perl-debuginfo · amzn 2023 1.3.45-1.amzn2023.0.3 ALAS2023-2026-1960 Jul 20, 2026
graphicsmagick · Debian 14 1.4+really1.3.48-1 DEBIAN-CVE-2026-77118 Aug 20, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.