CVE-2026-25898
Buffer Overflow in ImageMagick UIL/XPM Encoders Causes Crash
Publication date: 2026-02-24
Last updated on: 2026-02-25
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| 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 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.