6.5medium
Imagemagick Has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vpxv-r9pg-7gpr
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ImageMagick ImageMagick | >= 7.0.0, < 7.1.2-15, < 6.9.13-40, before 6.9.13-40, from 7.0.0-0 before 7.1.2-15 | CVE List, NVD |
| Magick.NET-Q16-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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:1135
NVD (es)
ImageMagick es software libre y de código abierto utilizado para editar y manipular imágenes digitales. Antes de las versiones 7.1.2-15 y 6.9.13-40, el codificador de imágenes UIL y XPM no valida el valor del índice de píxel devuelto por 'GetPixelIndex()' antes de usarlo como subíndice de una matriz. En las compilaciones HDRI, 'Quantum' es un tipo de punto flotante, por lo que los valores del índice de píxel pueden ser negativos. Un atacante puede crear una imagen con valores de índice de píxel negativos para activar una lectura de desbordamiento de búfer global durante la conversión, lo que lleva a la revelación de información o a un fallo del proceso. Las versiones 7.1.2-15 y 6.9.13-40 contienen un parche.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-25898 changed 2026-02-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vpxv-r9pg-7gpr changed 2026-02-24 | CC-BY-4.0 |
| NVD | CVE-2026-25898 changed 2026-06-17 | Public domain |