CVE-2026-77118 (GCVE-0-2026-77118)

Vulnerability from cvelistv5 – Published: 2026-08-20 12:42 – Updated: 2026-08-26 19:51
VLAI
Title
Out-of-bounds write in GraphicsMagick PCD decoder
Summary
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.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-26 19:42 UTC
CWE
Impacted products
Vendor Product Version
GraphicsMagick Group GraphicsMagick Affected: 1.0.0 , < 1.3.48 (semver)
    cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*
Create a notification for this product.
Debian graphicsmagick Affected: 0 , < 1.4+really1.3.48-1 (deb)
    cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*
Create a notification for this product.
Fedora Project GraphicsMagick Affected: 0 , < 1.3.48 (rpm)
    cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*
Create a notification for this product.
Date Public
2026-08-20 09:43
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-77118",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-26T19:42:13.414822Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-08-26T19:51:24.566Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "cpes": [
            "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "PCD / PCDS image coder"
          ],
          "platforms": [
            "Linux",
            "Windows",
            "macOS"
          ],
          "product": "GraphicsMagick",
          "programFiles": [
            "coders/pcd.c"
          ],
          "programRoutines": [
            {
              "name": "DecodeImage"
            }
          ],
          "repo": "https://foss.heptapod.net/graphicsmagick/graphicsmagick",
          "vendor": "GraphicsMagick Group",
          "versions": [
            {
              "lessThan": "1.3.48",
              "status": "affected",
              "version": "1.0.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://packages.debian.org",
          "cpes": [
            "cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*",
            "cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*",
            "cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "packageName": "graphicsmagick",
          "product": "graphicsmagick",
          "vendor": "Debian",
          "versions": [
            {
              "lessThan": "1.4+really1.3.48-1",
              "status": "affected",
              "version": "0",
              "versionType": "deb"
            }
          ]
        },
        {
          "collectionURL": "https://dl.fedoraproject.org/pub/epel",
          "cpes": [
            "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*",
            "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "packageName": "GraphicsMagick",
          "product": "GraphicsMagick",
          "vendor": "Fedora Project",
          "versions": [
            {
              "lessThan": "1.3.48",
              "status": "affected",
              "version": "0",
              "versionType": "rpm"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "1.3.48",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            },
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ],
          "operator": "OR"
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Cipher - Causal Security (https://causalsecurity.com/), who discovered the defect and reported it to the GraphicsMagick maintainer on 2026-06-14"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Bob Friesenhahn, GraphicsMagick, for the upstream fix"
        }
      ],
      "datePublic": "2026-08-20T09:43:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eA heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick. In \u003ccode\u003eDecodeImage()\u003c/code\u003e (\u003ccode\u003ecoders/pcd.c\u003c/code\u003e), the Huffman delta loop advances its output pointer with \u003ccode\u003eq++\u003c/code\u003e 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.\u003c/p\u003e\u003cp\u003eA 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 \u2014 for example with \u003ccode\u003egm convert\u003c/code\u003e or \u003ccode\u003egm identify\u003c/code\u003e, or through any application linked against libGraphicsMagick \u2014 can corrupt heap memory beyond the buffers.\u003c/p\u003e"
            }
          ],
          "value": "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.\n\n\n\nA 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 \u2014 for example with gm convert or gm identify, or through any application linked against libGraphicsMagick \u2014 can corrupt heap memory beyond the buffers."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-100",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-100 Overflow Buffers"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "attackVector": "LOCAL",
            "baseScore": 8.4,
            "baseSeverity": "HIGH",
            "exploitMaturity": "NOT_DEFINED",
            "privilegesRequired": "NONE",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "ACTIVE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "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",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-787",
              "description": "CWE-787 Out-of-bounds write",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-20T12:56:01.246Z",
        "orgId": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
        "shortName": "seal"
      },
      "references": [
        {
          "name": "Upstream fix (released in 1.3.48)",
          "tags": [
            "patch"
          ],
          "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96"
        },
        {
          "name": "GraphicsMagick 1.3.48 ChangeLog entry describing the fix and crediting the reporter",
          "tags": [
            "release-notes"
          ],
          "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eUpgrade to GraphicsMagick 1.3.48 or later, which bounds the decode output pointer against the end of each plane buffer and over-provisions the buffers.\u003c/p\u003e"
            }
          ],
          "value": "Upgrade to GraphicsMagick 1.3.48 or later, which bounds the decode output pointer against the end of each plane buffer and over-provisions the buffers."
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "title": "Out-of-bounds write in GraphicsMagick PCD decoder",
      "workarounds": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eWhere upgrading is not possible, prevent the PCD and PCDS coders from being used on untrusted input. GraphicsMagick detects PCD by file content, so filtering on filename extension is not sufficient; the coder module must be removed or the format rejected before decoding.\u003c/p\u003e"
            }
          ],
          "value": "Where upgrading is not possible, prevent the PCD and PCDS coders from being used on untrusted input. GraphicsMagick detects PCD by file content, so filtering on filename extension is not sufficient; the coder module must be removed or the format rejected before decoding."
        }
      ],
      "x_generator": {
        "engine": "Vulnogram 1.0.4"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
    "assignerShortName": "seal",
    "cveId": "CVE-2026-77118",
    "datePublished": "2026-08-20T12:42:42.952Z",
    "dateReserved": "2026-08-20T12:40:51.495Z",
    "dateUpdated": "2026-08-26T19:51:24.566Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-77118",
      "date": "2026-11-16",
      "epss": "0.00171",
      "percentile": "0.06603"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-13T20:40:58.000Z",
      "cve": "CVE-2026-77118",
      "id": "msrc_CVE-2026-77118",
      "initial_release_date": "2026-11-13T20:40:58.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "Out-of-bounds write in GraphicsMagick PCD decoder",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-77118.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "cpes": [
                  "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "modules": [
                  "PCD / PCDS image coder"
                ],
                "platforms": [
                  "Linux",
                  "Windows",
                  "macOS"
                ],
                "product": "GraphicsMagick",
                "programFiles": [
                  "coders/pcd.c"
                ],
                "programRoutines": [
                  {
                    "name": "DecodeImage"
                  }
                ],
                "repo": "https://foss.heptapod.net/graphicsmagick/graphicsmagick",
                "vendor": "GraphicsMagick Group",
                "versions": [
                  {
                    "lessThan": "1.3.48",
                    "status": "affected",
                    "version": "1.0.0",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "collectionURL": "https://packages.debian.org",
                "cpes": [
                  "cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*",
                  "cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*",
                  "cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "packageName": "graphicsmagick",
                "product": "graphicsmagick",
                "vendor": "Debian",
                "versions": [
                  {
                    "lessThan": "1.4+really1.3.48-1",
                    "status": "affected",
                    "version": "0",
                    "versionType": "deb"
                  }
                ]
              },
              {
                "collectionURL": "https://dl.fedoraproject.org/pub/epel",
                "cpes": [
                  "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*",
                  "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "packageName": "GraphicsMagick",
                "product": "GraphicsMagick",
                "vendor": "Fedora Project",
                "versions": [
                  {
                    "lessThan": "1.3.48",
                    "status": "affected",
                    "version": "0",
                    "versionType": "rpm"
                  }
                ]
              }
            ],
            "source": "22e2d327-25fe-45d7-9f0c-dcd23b7108df"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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.\n\n\n\nA 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 \u2014 for example with gm convert or gm identify, or through any application linked against libGraphicsMagick \u2014 can corrupt heap memory beyond the buffers."
          },
          {
            "lang": "es",
            "value": "Existe una escritura fuera de l\u00edmites en el heap en el decodificador de Photo CD (PCD) de GraphicsMagick. En DecodeImage() (coders/pcd.c), el bucle de delta de Huffman avanza su puntero de salida con q++ despu\u00e9s de cada delta decodificado y nunca lo verifica contra el final de los b\u00faferes de plano de luma/croma asignados en el heap. El puntero se reposiciona solo cuando un marcador de sincronizaci\u00f3n introduce un nuevo plano/fila; entre marcadores de sincronizaci\u00f3n, la longitud de la ejecuci\u00f3n est\u00e1 limitada \u00fanicamente por la entrada.\n\nUn archivo PCD manipulado que posiciona el puntero cerca del final de un plano y luego suministra una larga secuencia de deltas sin sincronizaci\u00f3n intermedia, por lo tanto, mueve el puntero m\u00e1s all\u00e1 del final de la asignaci\u00f3n y escribe a trav\u00e9s de \u00e9l. Procesar un archivo PCD no confiable - por ejemplo, con gm convert o gm identify, o a trav\u00e9s de cualquier aplicaci\u00f3n enlazada con libGraphicsMagick - puede corromper la memoria del heap m\u00e1s all\u00e1 de los b\u00faferes."
          }
        ],
        "id": "CVE-2026-77118",
        "lastModified": "2026-10-27T10:10:00.240",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 8.4,
                "baseSeverity": "HIGH",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "ACTIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-77118",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-26T19:42:13.414822Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-08-20T13:19:07.077",
        "references": [
          {
            "source": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
            "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96"
          },
          {
            "source": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
            "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog"
          }
        ],
        "sourceIdentifier": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
        "vulnStatus": "Deferred",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-787"
              }
            ],
            "source": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "current_release_date": "2026-10-31T08:49:27+00:00",
      "cve": "CVE-2026-77118",
      "id": "CVE-2026-77118",
      "initial_release_date": "2026-08-20T12:42:42.952000+00:00",
      "product_status:known_not_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "GraphicsMagick: GraphicsMagick: Arbitrary code execution via crafted PCD file",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77118.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-77118",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-08-26T19:42:13.414822Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-08-26T19:51:17.438Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "PCD / PCDS image coder"
              ],
              "platforms": [
                "Linux",
                "Windows",
                "macOS"
              ],
              "product": "GraphicsMagick",
              "programFiles": [
                "coders/pcd.c"
              ],
              "programRoutines": [
                {
                  "name": "DecodeImage"
                }
              ],
              "repo": "https://foss.heptapod.net/graphicsmagick/graphicsmagick",
              "vendor": "GraphicsMagick Group",
              "versions": [
                {
                  "lessThan": "1.3.48",
                  "status": "affected",
                  "version": "1.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packages.debian.org",
              "cpes": [
                "cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "packageName": "graphicsmagick",
              "product": "graphicsmagick",
              "vendor": "Debian",
              "versions": [
                {
                  "lessThan": "1.4+really1.3.48-1",
                  "status": "affected",
                  "version": "0",
                  "versionType": "deb"
                }
              ]
            },
            {
              "collectionURL": "https://dl.fedoraproject.org/pub/epel",
              "cpes": [
                "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*",
                "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "packageName": "GraphicsMagick",
              "product": "GraphicsMagick",
              "vendor": "Fedora Project",
              "versions": [
                {
                  "lessThan": "1.3.48",
                  "status": "affected",
                  "version": "0",
                  "versionType": "rpm"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "1.3.48",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                },
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:debian:debian_linux:12:*:*:*:*:*:*:*",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:debian:debian_linux:13:*:*:*:*:*:*:*",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0:*:*:*:*:*:*:*",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "OR"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Cipher - Causal Security (https://causalsecurity.com/), who discovered the defect and reported it to the GraphicsMagick maintainer on 2026-06-14"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bob Friesenhahn, GraphicsMagick, for the upstream fix"
            }
          ],
          "datePublic": "2026-08-20T09:43:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eA heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick. In \u003ccode\u003eDecodeImage()\u003c/code\u003e (\u003ccode\u003ecoders/pcd.c\u003c/code\u003e), the Huffman delta loop advances its output pointer with \u003ccode\u003eq++\u003c/code\u003e 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.\u003c/p\u003e\u003cp\u003eA 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 \u2014 for example with \u003ccode\u003egm convert\u003c/code\u003e or \u003ccode\u003egm identify\u003c/code\u003e, or through any application linked against libGraphicsMagick \u2014 can corrupt heap memory beyond the buffers.\u003c/p\u003e"
                }
              ],
              "value": "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.\n\n\n\nA 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 \u2014 for example with gm convert or gm identify, or through any application linked against libGraphicsMagick \u2014 can corrupt heap memory beyond the buffers."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-100",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-100 Overflow Buffers"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 8.4,
                "baseSeverity": "HIGH",
                "exploitMaturity": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "ACTIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-08-20T12:56:01.246Z",
            "orgId": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
            "shortName": "seal"
          },
          "references": [
            {
              "name": "Upstream fix (released in 1.3.48)",
              "tags": [
                "patch"
              ],
              "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96"
            },
            {
              "name": "GraphicsMagick 1.3.48 ChangeLog entry describing the fix and crediting the reporter",
              "tags": [
                "release-notes"
              ],
              "url": "https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUpgrade to GraphicsMagick 1.3.48 or later, which bounds the decode output pointer against the end of each plane buffer and over-provisions the buffers.\u003c/p\u003e"
                }
              ],
              "value": "Upgrade to GraphicsMagick 1.3.48 or later, which bounds the decode output pointer against the end of each plane buffer and over-provisions the buffers."
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Out-of-bounds write in GraphicsMagick PCD decoder",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eWhere upgrading is not possible, prevent the PCD and PCDS coders from being used on untrusted input. GraphicsMagick detects PCD by file content, so filtering on filename extension is not sufficient; the coder module must be removed or the format rejected before decoding.\u003c/p\u003e"
                }
              ],
              "value": "Where upgrading is not possible, prevent the PCD and PCDS coders from being used on untrusted input. GraphicsMagick detects PCD by file content, so filtering on filename extension is not sufficient; the coder module must be removed or the format rejected before decoding."
            }
          ],
          "x_generator": {
            "engine": "Vulnogram 1.0.4"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "22e2d327-25fe-45d7-9f0c-dcd23b7108df",
        "assignerShortName": "seal",
        "cveId": "CVE-2026-77118",
        "datePublished": "2026-08-20T12:42:42.952Z",
        "dateReserved": "2026-08-20T12:40:51.495Z",
        "dateUpdated": "2026-08-26T19:51:24.566Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…