ImageMagick 7.1.2-15/6.9.13-40 UI/XPM Index Overflow Crash
CVE-2026-25898 Published on February 24, 2026

Imagemagick Has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
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, the UIL and XPM image encoder do not validate the pixel index value returned by `GetPixelIndex()` before using it as an array subscript. In HDRI builds, `Quantum` is a floating-point type, so pixel index values can be negative. An attacker can craft an image with negative pixel index values to trigger a global buffer overflow read during conversion, leading to information disclosure or a process crash. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Github Repository NVD

Vulnerability Analysis

CVE-2026-25898 is exploitable 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 a small impact on confidentiality, a small impact on integrity, and a small impact on availability.

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

Weakness Type

Out-of-bounds Read

The software reads data past the end, or before the beginning, of the intended buffer. Typically, this can allow attackers to read sensitive information from other memory locations or cause a crash. A crash can occur when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string. The expected sentinel might not be located in the out-of-bounds memory, causing excessive data to be read, leading to a segmentation fault or a buffer overflow. The software may modify an index or perform pointer arithmetic that references a memory location that is outside of the boundaries of the buffer. A subsequent read operation then produces undefined or unexpected results.


Products Associated with CVE-2026-25898

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-25898

Package Manager Vulnerable Package Versions Fixed In
nuget Magick.NET-Q8-x86 < 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-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.61%

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.