CVE-2026-25898
Received Received - Intake
Buffer Overflow in ImageMagick UIL/XPM Encoders Causes Crash

Publication date: 2026-02-24

Last updated on: 2026-02-25

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-24
Last Modified
2026-02-25
Generated
2026-05-27
AI Q&A
2026-02-24
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-40 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-15 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-25898 is a moderate severity vulnerability in ImageMagick versions prior to 7.1.2-15 and 6.9.13-40. It affects the UIL and XPM image encoders, which do not properly validate the pixel index value returned by the GetPixelIndex() function before using it as an array subscript.

In HDRI builds of ImageMagick, the Quantum type is floating-point, allowing pixel index values to be negative. An attacker can craft an image with negative pixel index values that trigger a global buffer overflow read (an out-of-bounds read) during image conversion.

This vulnerability can cause information disclosure or a process crash by reading memory outside the intended bounds.


How can this vulnerability impact me? :

This vulnerability can be exploited remotely without any privileges or user interaction, as the attack vector is network-based with low complexity.

The impact includes potential information disclosure due to out-of-bounds memory reads, which could expose sensitive data.

Additionally, it can cause the ImageMagick process to crash, leading to a denial of service or availability issues.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should upgrade ImageMagick to version 7.1.2-15 or later, or 6.9.13-40 or later, where the issue has been patched.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart