Bug 2520299 (CVE-2026-77118) - CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file
Summary: CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via c...
Keywords:
Status: NEW
Alias: CVE-2026-77118
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2521292 2521293
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-20 13:11 UTC by OSIDB Bzimport
Modified: 2026-08-22 12:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-20 13:11:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.