CVE-2026-77118Out-of-bounds write in GraphicsMagick PCD decoder
Updated under an hour ago ()
Does this affect you?
It affects GraphicsMagick Group GraphicsMagick and 2 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Weakness (CWE)
- CWE-787
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- seal
- NVD analysis
- Deferred
- Record last updated
- Aug 26, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
GraphicsMagick Group GraphicsMagick graphicsmagick:graphicsmagick | from 1.0.0 before 1.3.48 | CNA record |
Debian graphicsmagick debian:debian_linux | before 1.4+really1.3.48-1 | CNA record |
Fedora Project GraphicsMagick fedoraproject:extra_packages_for_enterprise_linux | before 1.3.48 | CNA record |
References
- https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96patch
- https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLogrelease-notes
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.