CVE-2026-25794
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. `WriteUHDRImage` in `coders/uhdr.c` uses `int` arithmetic to compute the pixel buffer size. Prior to version 7.1.2-15, when image dimensions are large, the multiplication overflows 32-bit `int`, causing an undersized heap allocation followed by an out-of-bounds write. This can crash the process or potentially lead to an out of bounds heap write. Version 7.1.2-15 contains a patch.
Description as published by the source, in English.
Key facts
- Published
- 2026-02-24
- Last modified
- 2026-07-15
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.4 %
higher than 35 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Magick.NET-Q16-AnyCPU (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-AnyCPU (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-HDRI-x86 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-OpenMP-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-OpenMP-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-OpenMP-x86 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q16-x86 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-AnyCPU (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-OpenMP-arm64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-OpenMP-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-x64 (NuGet) | < 14.10.3 | Affected | |
| Magick.NET-Q8-x86 (NuGet) | < 14.10.3 | Affected | |
| Imagemagick | Imagemagick | < 7.1.2-15 | Affected |
Weakness type
-
CWE-122: Heap-based Buffer Overflow
The product writes past the end of a buffer that was allocated on the heap.
-
CWE-190: Integer Overflow or Wraparound
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is i…
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vhqj-f5cj-9x8h
- https://access.redhat.com/security/cve/CVE-2026-25794
- https://bugzilla.redhat.com/show_bug.cgi?id=2442110
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25794.json
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.