DEBIAN-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 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.
DEBIAN-CVE-2026-77118
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-77118
graphicsmagick
Source reference: /affected/0/package/name
- Affected versions
- 1.4+really1.3.40-4
Source reference:
/affected/0/versions1.4+really1.3.40-4+deb12u1Source reference:
/affected/0/versions1.4+really1.3.41-1Source reference:
/affected/0/versions1.4+really1.3.42-1Source reference:
/affected/0/versions1.4+really1.3.42-1.1Source reference:
/affected/0/versions1.4+really1.3.42-1.1~exp1Source reference:
/affected/0/versions1.4+really1.3.43-1Source reference:
/affected/0/versions1.4+really1.3.44-1Source reference:
/affected/0/versions1.4+really1.3.45+hg17689-1Source reference:
/affected/0/versions1.4+really1.3.45+hg17692-1Source reference:
/affected/0/versions1.4+really1.3.45+hg17696-1Source reference:
/affected/0/versions1.4+really1.3.45-1Source reference:
/affected/0/versions1.4+really1.3.46-1Source reference:
/affected/0/versions1.4+really1.3.46-2Source reference:
/affected/0/versions1.4+really1.3.48-1Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
graphicsmagick
Source reference: /affected/1/package/name
- Affected versions
- 1.4+really1.3.45+hg17696-1
Source reference:
/affected/1/versions1.4+really1.3.46-1Source reference:
/affected/1/versions1.4+really1.3.46-2Source reference:
/affected/1/versions1.4+really1.3.48-1Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
graphicsmagick
Source reference: /affected/2/package/name
- Affected versions
- 1.4+really1.3.45+hg17696-1
Source reference:
/affected/2/versions1.4+really1.3.46-1Source reference:
/affected/2/versions1.4+really1.3.46-2Source reference:
/affected/2/versions - Fixed versions
- 1.4+really1.3.48-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "graphicsmagick",
"purl": "pkg:deb/debian/graphicsmagick?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.4+really1.3.40-4",
"1.4+really1.3.40-4+deb12u1",
"1.4+really1.3.41-1",
"1.4+really1.3.42-1",
"1.4+really1.3.42-1.1",
"1.4+really1.3.42-1.1~exp1",
"1.4+really1.3.43-1",
"1.4+really1.3.44-1",
"1.4+really1.3.45+hg17689-1",
"1.4+really1.3.45+hg17692-1",
"1.4+really1.3.45+hg17696-1",
"1.4+really1.3.45-1",
"1.4+really1.3.46-1",
"1.4+really1.3.46-2",
"1.4+really1.3.48-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77118.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "graphicsmagick",
"purl": "pkg:deb/debian/graphicsmagick?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.4+really1.3.45+hg17696-1",
"1.4+really1.3.46-1",
"1.4+really1.3.46-2",
"1.4+really1.3.48-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77118.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4+really1.3.48-1"
}
]
}
],
"package": {
"name": "graphicsmagick",
"purl": "pkg:deb/debian/graphicsmagick?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.4+really1.3.45+hg17696-1",
"1.4+really1.3.46-1",
"1.4+really1.3.46-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77118.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #58349 · Revision 1
- Added to Heist Feed
- Publisher date