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

[CVE catalog]

Severity
High · CVSS 8.4CVSS: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.

DistributionPackageReleaseVersionStatus
Debiangraphicsmagicksid1.4+really1.3.49-1fixed
Debiangraphicsmagickforky1.4+really1.3.49-1fixed
Debiangraphicsmagicktrixie1.4+really1.3.45+hg17696-1vulnerable
Debiangraphicsmagickbookworm1.4+really1.3.40-4+deb12u1vulnerable
Debiangraphicsmagickbookworm-security1.4+really1.3.40-4+deb12u1vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1build1vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1.1build1vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1.1build2vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1.1build3vulnerable
Ubuntugraphicsmagickpro1.4+really1.3.42-1.1ubuntu0.1~esm1vulnerable
Ubuntugraphicsmagick26.041.4+really1.3.45+hg17696-1build1vulnerable
Ubuntugraphicsmagick26.041.4+really1.3.46-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangraphicsmagicksourcesid1.4+really1.3.48-1not yet assignedNot reportedNot reported
Debiangraphicsmagicksourceforky1.4+really1.3.48-1not yet assignedNot reportedNot reported
Debiangraphicsmagicksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiangraphicsmagicksourcebookworm(unfixed)not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [graphicsmagick]Affected
    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · graphicsmagick · debian · bookworm; nvd · graphicsmagick · debian · 12

[Debian 13 (Trixie)]

  • [graphicsmagick]Affected
    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Affected

      nvd · graphicsmagick · debian · 13

Observed:

References