ImageMagick SVG OOM via ~674GB allocation pre7.1.215/6.9.1340
CVE-2026-25985 Published on February 24, 2026

Memory allocation with excessive without limits in the internal SVG decoder
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a crafted SVG file containing an malicious element causes ImageMagick to attempt to allocate ~674 GB of memory, leading to an out-of-memory abort. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Github Repository NVD

Vulnerability Analysis

CVE-2026-25985 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Types

Allocation of Resources Without Limits or Throttling

The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.

What is a Stack Exhaustion Vulnerability?

The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

CVE-2026-25985 has been classified to as a Stack Exhaustion vulnerability or weakness.


Products Associated with CVE-2026-25985

Want to know whenever a new CVE is published for ImageMagick? stack.watch will email you.

 

Affected Versions

ImageMagick:

Vulnerable Packages

The following package name and versions may be associated with CVE-2026-25985

Package Manager Vulnerable Package Versions Fixed In
nuget Magick.NET-Q8-x86 < 14.10.3 14.10.3
nuget Magick.NET-Q8-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q8-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q8-OpenMP-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q8-OpenMP-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q8-AnyCPU < 14.10.3 14.10.3
nuget Magick.NET-Q16-x86 < 14.10.3 14.10.3
nuget Magick.NET-Q16-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-OpenMP-x86 < 14.10.3 14.10.3
nuget Magick.NET-Q16-OpenMP-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-OpenMP-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-x86 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-OpenMP-x64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-OpenMP-arm64 < 14.10.3 14.10.3
nuget Magick.NET-Q16-HDRI-AnyCPU < 14.10.3 14.10.3
nuget Magick.NET-Q16-AnyCPU < 14.10.3 14.10.3

Exploit Probability

EPSS
0.05%
Percentile
16.09%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.