Advisory
GHSA-vpxv-r9pg-7gpr
Also known as: CVE-2026-25898
Summary
ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
Details
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.
READ of size 1 at 0x55a8823a776e thread T0
#0 0x55a880d01e85 in WriteUILImage coders/uil.c:355
READ of size 1 at 0x55fa1c04c66e thread T0
#0 0x55fa1a9ee415 in WriteXPMImage coders/xpm.c:1135Severity
Medium Basis: The source's own band: MODERATE
Dates
- Published
- 2026-02-24 15:39 UTC
- Modified
- 2026-02-24 16:26 UTC
Affected packages and fixes
| Package | Fix |
|---|---|
| Magick.NET-Q16-AnyCPU | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-HDRI-AnyCPU | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-HDRI-OpenMP-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-HDRI-OpenMP-x64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-HDRI-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-HDRI-x64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-OpenMP-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-OpenMP-x64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-OpenMP-x86 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-x64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q16-x86 | The export has no generic command for this ecosystem. |
| Magick.NET-Q8-AnyCPU | The export has no generic command for this ecosystem. |
| Magick.NET-Q8-OpenMP-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q8-OpenMP-x64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q8-arm64 | The export has no generic command for this ecosystem. |
| Magick.NET-Q8-x86 | The export has no generic command for this ecosystem. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vpxv-r9pg-7gpr
- 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
Source
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0