CVE-2026-109964

ImageMagick before 7.1.2-33 and 6.9.13-58 Heap Buffer Underwrite in PICT Decoder

Published Oct 13, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ImageMagick images processed by the PICT decoder can contain malformed header values that cause a 32‑bit pointer arithmetic overflow in the DecodeImage() function. An attacker who supplies a specially crafted PICT file with maximized row, column, and bytes‑per‑line fields can bypass bounds checks and write up to 128 bytes of controlled data below a heap buffer. This heap buffer underwrite can cause the application to crash or, if the corrupted data is executed, allow arbitrary code execution. The flaw is a classic buffer underwrite (CWE‑124) and therefore impacts integrity and availability of systems that invoke the affected decoder.

Affected Systems

The vulnerability exists in ImageMagick releases prior to 7.1.2-33 and 6.9.13-58, on 32‑bit builds. Any deployment that uses these versions and processes PICT files – for example web servers, imaging services, or content‑management systems that rely on ImageMagick – is affected. Upgrading beyond the identified revision or disabling PICT support removes the authority for the exploit.

Risk and Exploitability

The CVSS v3 score of 6.3 indicates a moderate severity. No EPSS score is available, so current exploit probability is unknown, but the flaw is exploitable through a crafted file, which is a common attack vector for image processing libraries. The issue is not listed in CISA’s KEV catalog, suggesting no known mass exploitation yet. However, systems that accept user supplied images and run on 32‑bit ImageMagick could be targeted by mounting a denial‑of‑service attack or attempting to execute code via the underwrite.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-33 or later, or to 6.9.13-58 or later.
  • If the application does not require PICT support, disable PICT decoding by removing the pict.c module or disabling the format in the configuration.
  • Run image processing in a sandboxed environment or under a dedicated user with limited privileges, and restrict access to memory allocation functions to mitigate the impact of any future buffer overflows.

Generated by OpenCVE AI on October 13, 2026 at 19:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4875-1 imagemagick security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ImageMagick before 7.1.2-33 and 6.9.13-58 Heap Buffer Underwrite in PICT Decoder
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-124
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-124

    Buffer Underwrite ('Buffer Underflow')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 4:43 PM
Reserved
Oct 13, 2026, 11:26 AM
Status
Analyzed
Published
Oct 13, 2026, 2:17 PM
Modified
Nov 3, 2026, 6:24 PM
Severity
Moderate
Public date
Oct 13, 2026, 1:35 PM