Out-of-bounds write in GraphicsMagick PCD decoder
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GraphicsMagick Group | GraphicsMagick | 1.0.0 to before 1.3.48 | 1.3.48 | Patch available | CNA |
| Debian | graphicsmagick | before 1.4+really1.3.48-1 | 1.4+really1.3.48-1 | Patch available | CNA |
| Fedora Project | GraphicsMagick | before 1.3.48 | 1.3.48 | Patch available | CNA |
- GraphicsMagick VendorGraphicsMagick Group Affected 1.0.0 to before 1.3.48 Fixed in 1.3.48 Patch available CNA
- graphicsmagick VendorDebian Affected before 1.4+really1.3.48-1 Fixed in 1.4+really1.3.48-1 Patch available CNA
- GraphicsMagick VendorFedora Project Affected before 1.3.48 Fixed in 1.3.48 Patch available CNA
CPE names CNA · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:* | — | — | GraphicsMagick |
| cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:* | 11 | — | Debian |
| cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:* | 12 | — | Debian |
| cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:* | 13 | — | Debian |
| cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | — | Fedoraproject |
| cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:* | 9.0 | — | Fedoraproject |
- cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:* Versions — — ·GraphicsMagick
- cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:* Versions 11 — ·Debian
- cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:* Versions 12 — ·Debian
- cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:* Versions 13 — ·Debian
- cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 — ·Fedoraproject
- cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 — ·Fedoraproject
Remediation
- Fix · CNA GraphicsMagick (GraphicsMagick Group) Fixed in 1.3.48
- Fix · CNA graphicsmagick (Debian) Fixed in 1.4+really1.3.48-1
- Fix · CNA GraphicsMagick (Fedora Project) Fixed in 1.3.48
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-77118
- 2026-10-03 Alias added: GHSA-qjrj-qxx7-fc4j
References
Sources
- CVE-2026-77118 · CVE Program
- CVE-2026-77118 · NVD
- FIRST EPSS
- GHSA-qjrj-qxx7-fc4j · GitHub Advisory Database · CC BY 4.0
- CVE-2026-77118 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences