cve.bz

CVE-2026-77118 Out-of-bounds Write

8.4 highEPSS 0.2%

High (8.4). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.4 high
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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-77118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-77118?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-77118?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-77118 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GraphicsMagick Group GraphicsMagickfrom 1.0.0 before 1.3.48
Debian graphicsmagickbefore 1.4+really1.3.48-1
Fedora Project GraphicsMagickbefore 1.3.48

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13graphicsmagickno fix listedDEBIAN-CVE-2026-77118
Debian14graphicsmagick1.4+really1.3.48-1DEBIAN-CVE-2026-77118
Ubuntu26.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 4 moregraphicsmagickno fix listedUBUNTU-CVE-2026-77118

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security has rated this vulnerability as Important because successful exploitation may lead to heap memory corruption and arbitrary code execution within the context of the parsing process. While the potential impact on system confidentiality, integrity, and availability is high, an attacker cannot trigger the flaw without inducing a user or service to parse an untrusted Photo CD (PCD) file. GraphicsMagick is not included in core Red Hat Enterprise Linux channels, limiting exposure to environments where community packages like EPEL are explicitly installed.

Red Hat's mitigation

To mitigate this issue, avoid processing untrusted Photo CD (PCD) files with GraphicsMagick utilities such as `gm convert` or `gm identify`, or with any application linked against `libGraphicsMagick`. Restrict the execution environment or user permissions for these tools if they must handle external input.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-77118.

References

Check your stackJSON