---
id: CVE-2026-109964
title: >-
  ImageMagick before 7.1.2-33 and 6.9.13-58 contains a heap buffer underwrite
  vulnerability in DecodeImage() in coders/pict.c on 32-bit builds due to
  pointer arithmetic overflow
summary: >-
  ImageMagick before 7.1.2-33 and 6.9.13-58 contains a heap buffer underwrite
  vulnerability in DecodeImage() in coders/pict.c on 32-bit builds due to
  pointer arithmetic overflow. Attackers can supply a crafted PICT file with
  maximized row,…
severity: medium
cvss: 5.6
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-124
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T20:39:48.767'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109964'
references:
  - url: 'https://github.com/ImageMagick/ImageMagick'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick/blob/7.1.2-32/coders/pict.c#L503-L540
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick/commit/63dde0cf281383ab69432b88305f7dcd6a8ce900
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mqmp-r5jh-jx7w
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick6/commit/c18c5d5fb7f1d87ddbe0a02e9d1207c89b24588c
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-and-6.9.13-58-heap-buffer-underwrite-in-pict-decoder
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-109964.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-109964'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2550562'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-109964'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109964'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
ingestedAt: '2026-10-13T14:29:01.857Z'
vendor: Red Hat
product: Red Hat Enterprise Linux 6
affected:
  - enterprise_linux 6
  - enterprise_linux 7
scores:
  nvd: 5.6
  vendor: 7
  cna: 5.6
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-13T15:47:49.610741Z'
epss: 0.00361
epssPercentile: 0.29757
---

## Overview

ImageMagick before 7.1.2-33 and 6.9.13-58 contains a heap buffer underwrite vulnerability in DecodeImage() in coders/pict.c on 32-bit builds due to pointer arithmetic overflow. Attackers can supply a crafted PICT file with maximized row, column and bytes-per-line values to bypass bounds checks and write up to 128 controlled bytes below the heap buffer, causing crashes or code execution.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · updated 2026-10-13 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-109964.json)
