Bug 2521292 - CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file [epel-all]
Summary: CVE-2026-77118 GraphicsMagick: GraphicsMagick: Arbitrary code execution via c...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: GraphicsMagick
Version: epel10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["64abc823-3b93-41ce-9244-0...
Depends On:
Blocks: CVE-2026-77118
TreeView+ depends on / blocked
 
Reported: 2026-08-22 12:01 UTC by Vladimir Vasilev
Modified: 2026-08-22 12:01 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-08-22 12:01:13 UTC
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 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.