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.
Published: 2026-02-24
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure / Crash
Action: Apply Patch
AI Analysis

Impact

ImageMagick libraries encode images in UIL and XPM formats without validating the pixel index returned by GetPixelIndex(). In builds where Quantum is a floating-point type, negative indices can be produced, allowing a crafted image to overflow a buffer read. The resulting out‑of‑bounds read can leak memory contents to the calling process or cause a crash, potentially exposing sensitive data or interrupting service but does not provide remote code execution. The vulnerability is classified under CWE‑125 – Out‑of‑Bounds Read.

Affected Systems

Any deployment of ImageMagick prior to version 7.1.2‑15 and 6.9.13‑40 is susceptible. The affected product is the ImageMagick library, used by a wide range of image‑processing applications, both on servers and on client machines. Versions older than the stated thresholds lack the patch that validates the pixel index before array subscripting.

Risk and Exploitability

The CVSS score of 6.5 indicates medium severity, while the EPSS score of less than 1% suggests a low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a malicious image that the vulnerable application processes, which can be achieved via remote upload or local privilege if the application is invoked with user data. The lack of code‑execution capability keeps the risk moderate, but the information disclosure angle motivates prompt remediations.

Generated by OpenCVE AI on April 18, 2026 at 10:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update ImageMagick to version 7.1.2-15 or 6.9.13-40, which includes the index validation patch for UIL and XPM encoders.
  • If the UIL or XPM image writers are not required by your application, disable or remove them to reduce the attack surface associated with negative pixel indices.
  • Implement a pre‑processing check that validates all pixel indices are non‑negative before invoking GetPixelIndex(), or use a trusted image sanitizer to block images that attempt to use out‑of‑bounds values.

Generated by OpenCVE AI on April 18, 2026 at 10:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4497-1 imagemagick security update
Debian DSA Debian DSA DSA-6158-1 imagemagick security update
Debian DSA Debian DSA DSA-6159-1 imagemagick security update
Github GHSA Github GHSA GHSA-vpxv-r9pg-7gpr ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
Ubuntu USN Ubuntu USN USN-8069-1 ImageMagick vulnerabilities
History

Thu, 26 Feb 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 25 Feb 2026 12:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

Tue, 24 Feb 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 24 Feb 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick

Tue, 24 Feb 2026 02:00:00 +0000

Type Values Removed Values Added
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.
Title Imagemagick Has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
Weaknesses CWE-125
References
Metrics cvssV3_1

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


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-26T15:26:43.363Z

Reserved: 2026-02-06T21:08:39.131Z

Link: CVE-2026-25898

cve-icon Vulnrichment

Updated: 2026-02-26T15:26:37.444Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-24T02:16:01.000

Modified: 2026-02-25T11:53:20.467

Link: CVE-2026-25898

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-02-24T01:18:33Z

Links: CVE-2026-25898 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T11:00:05Z

Weaknesses