
CVE catalog
CVE-2026-77118
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 delt
- Severity
- High · CVSS 8.4
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.17% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | graphicsmagick | sid | 1.4+really1.3.49-1 | fixed |
| Debian | graphicsmagick | forky | 1.4+really1.3.49-1 | fixed |
| Debian | graphicsmagick | trixie | 1.4+really1.3.45+hg17696-1 | vulnerable |
| Debian | graphicsmagick | bookworm | 1.4+really1.3.40-4+deb12u1 | vulnerable |
| Debian | graphicsmagick | bookworm-security | 1.4+really1.3.40-4+deb12u1 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1build1 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1.1build1 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1.1build2 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1.1build3 | vulnerable |
| Ubuntu | graphicsmagick | pro | 1.4+really1.3.42-1.1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | graphicsmagick | 26.04 | 1.4+really1.3.45+hg17696-1build1 | vulnerable |
| Ubuntu | graphicsmagick | 26.04 | 1.4+really1.3.46-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | graphicsmagick | source | sid | 1.4+really1.3.48-1 | not yet assigned | Not reported | Not reported |
| Debian | graphicsmagick | source | forky | 1.4+really1.3.48-1 | not yet assigned | Not reported | Not reported |
| Debian | graphicsmagick | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | graphicsmagick | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [graphicsmagick]Affected
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [graphicsmagick-dbg]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [graphicsmagick-imagemagick-compat]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· all · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [graphicsmagick-libmagick-dev-compat]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· all · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· all · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [libgraphicsmagick++1-dev]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [libgraphicsmagick1-dev]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [libgraphics-magick-perl]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [libgraphicsmagick++-q16-12]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
- [libgraphicsmagick-q16-3]Affected
Source package: [graphicsmagick]
Details (4)
1.4+really1.3.40-4+deb12u1· amd64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookwormAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· amd64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
1.4+really1.3.40-4+deb12u1· arm64 · bookworm-securityAffected
nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12
[Debian 13 (Trixie)]
- [graphicsmagick]Affected
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [graphicsmagick-dbg]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [graphicsmagick-imagemagick-compat]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· all · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· all · trixieAffected
nvd · graphicsmagick · debian · 13
- [graphicsmagick-libmagick-dev-compat]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· all · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· all · trixieAffected
nvd · graphicsmagick · debian · 13
- [libgraphicsmagick++1-dev]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [libgraphicsmagick1-dev]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [libgraphics-magick-perl]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [libgraphicsmagick++-q16-12t64]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
- [libgraphicsmagick-q16-3t64]Affected
Source package: [graphicsmagick]
Details (2)
1.4+really1.3.45+hg17696-1· amd64 · trixieAffected
nvd · graphicsmagick · debian · 13
1.4+really1.3.45+hg17696-1· arm64 · trixieAffected
nvd · graphicsmagick · debian · 13
Observed:
References
- [https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96]
- [https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-77118]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-77118]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-77118]
- [https://security-tracker.debian.org/tracker/CVE-2026-77118]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77118.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]