CVE-2026-77118: CWE-787 Out-of-bounds write in GraphicsMagick Group GraphicsMagick
Description
CVE-2026-77118 is a heap out-of-bounds write vulnerability in the Photo CD (PCD) decoder of GraphicsMagick. The flaw occurs in the DecodeImage() function where the output pointer advances without proper boundary checks, potentially leading to heap memory corruption when processing crafted PCD files. This affects GraphicsMagick versions from 0 up to but not including 1.3.48. The vulnerability has a high severity score of 8.4 CVSS v4.0.
CVSS v4.0
Score 8.4high
Affected software
GraphicsMagick Group
GraphicsMagick
Debian
graphicsmagick
Fedora Project
GraphicsMagick
pkg:deb/graphicsmagick/graphicsmagickcpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability is a heap out-of-bounds write in the PCD decoder of GraphicsMagick, specifically in the DecodeImage() function (coders/pcd.c). The Huffman delta loop increments an output pointer (q++) after each decoded delta without verifying it against the allocated buffer boundaries for luma/chroma planes. The pointer is only reset upon encountering a sync marker, so a crafted PCD file can cause the pointer to advance past the buffer end and write beyond allocated heap memory. This can lead to heap corruption when processing untrusted PCD files via GraphicsMagick commands or any linked application.
Potential Impact
Heap memory corruption can occur when processing maliciously crafted PCD files, potentially leading to application crashes or exploitable conditions. The vulnerability affects local processing of untrusted files and requires user interaction (e.g., running gm convert or gm identify). No known exploits in the wild have been reported.
Mitigation Recommendations
No explicit patch or fix information is provided in the available data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted PCD files with affected versions of GraphicsMagick.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- seal
- Date Reserved
- 2026-08-20T12:40:51.495Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a86fc23acd9273b49a4aafe
Added to database: 08/20/2026, 13:07:47 UTC
Last enriched: 09/11/2026, 00:17:05 UTC
Last updated: 10/04/2026, 16:08:41 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.