CVE-2026-116152

ImageMagick before 7.1.2-33 Memory Leak in MAT Decoder Error Path

Published Oct 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the MAT decoder that fails to release allocated memory in a specific error path. Attackers can supply crafted MAT files that trigger this error path repeatedly, causing small memory leaks that gradually consume process memory.

Analysis

AI-generated

Technical impact

ImageMagick prior to version 7.1.2-33 contains a memory leak in the MAT decoder’s error handling path. A crafted MAT file can trigger the error, causing the decoder to allocate memory that is never freed. Each failure leaks a small amount of memory and, when repeated many times, can exhaust the memory available to the ImageMagick process. This gradual exhaustion can degrade or terminate services that rely on image processing, resulting in a denial of service.

Affected Systems

All installations of ImageMagick older than 7.1.2-33 that use the MAT decoder are affected. The vulnerability applies regardless of host platform or deployment scenario, as long as the vulnerable build processes MAT files.

Risk and Exploitability

With a CVSS score of 6.9 the vulnerability is classified as moderate. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is to supply a malicious MAT file to the vulnerable process, such as through a file upload endpoint or an API that accepts image data. Based on the description, it is inferred that no special authentication is required; the attacker only needs the ability to provide a MAT file to the ImageMagick instance. Because the flaw causes a cumulative leak, repeated requests can gradually consume process memory and lead to a denial of service. The absence of authentication requirements lowers the barrier to exploitation, making the risk significant if file handling is not restricted or monitored.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-33 or later.
  • If an immediate upgrade is not feasible, restrict or disable processing of MAT files to prevent exploitation.
  • Monitor memory usage of ImageMagick processes, set alerts for abnormal growth, and enforce resource limits or automated restarts when thresholds are exceeded.

Generated by OpenCVE AI on October 26, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the MAT decoder that fails to release allocated memory in a specific error path. Attackers can supply crafted MAT files that trigger this error path repeatedly, causing small memory leaks that gradually consume process memory.
Title ImageMagick before 7.1.2-33 Memory Leak in MAT Decoder Error Path
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-401
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 4:19 PM
Reserved
Oct 25, 2026, 12:22 PM
Status
Analyzed
Published
Oct 25, 2026, 2:16 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Moderate
Public date
Oct 25, 2026, 1:20 PM