# CVE-2026-25898: Imagemagick Has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-24 · Modified: 2026-02-26
- Aliases: UBUNTU-CVE-2026-25898, DEBIAN-CVE-2026-25898, GHSA-vpxv-r9pg-7gpr, ALPINE-CVE-2026-25898
- Record: https://cvemate.com/vulnerability/CVE-2026-25898 · JSON: https://cvemate.com/vulnerability/CVE-2026-25898/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.389%, percentile 35.127%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 21)

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.1.2.15-r0 \| \< 7.1.2.15-r0
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u7 \| \< 8:7.1.1.43+dfsg1-1+deb13u6 \| \< 8:7.1.2.15+dfsg1-1
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm19 \| \< 8:6.8.9.9-7ubuntu5.16+esm18 \| \< 8:6.9.7.4+dfsg-16ubuntu6.15+esm10 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm8 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm8 \| \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm7 \| \< 8:7.1.2.3+dfsg1-1ubuntu0.1
- imagemagick imagemagick: ≥ 7.0.0, \< 7.1.2-15 \| \< 6.9.13-40 \| ≥ 7.0.0-0, \< 7.1.2-15
- NuGet Magick.NET-Q16-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-x86 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-x86 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-OpenMP-x64 (NuGet): \< 14.10.3

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vpxv-r9pg-7gpr>
- <https://ubuntu.com/security/CVE-2026-25898>
- <https://www.cve.org/CVERecord?id=CVE-2026-25898>
- <https://ubuntu.com/security/notices/USN-8069-1>
- <https://ubuntu.com/security/notices/USN-8263-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-25898>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25898>
- <https://github.com/ImageMagick/ImageMagick/commit/c9c87dbaba56bf82aebd3392e11f0ffd93709b12>
- <https://github.com/ImageMagick/ImageMagick>
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3>
- <https://security.alpinelinux.org/vuln/CVE-2026-25898>

---

Data as of 2026-12-05T04:58:53.777Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
