# CVE-2026-25794: ImageMagick has heap-buffer-overflow via signed integer overflow in \`WriteUHDRImage\` when writing UHDR images with large dimensions

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 7.1.2-15 (CNA); fix release not confirmed
- Status: published
- Published: 2026-02-24 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-25794, DEBIAN-CVE-2026-25794, CGA-47v8-rq37-5mwj, CGA-mv22-r69m-xpjw, GHSA-vhqj-f5cj-9x8h, ALPINE-CVE-2026-25794
- Record: https://cvemate.com/vulnerability/CVE-2026-25794 · JSON: https://cvemate.com/vulnerability/CVE-2026-25794/json

## Description

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

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- EPSS: 0.457%, percentile 41.357%, 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 24)

- alpine imagemagick (Alpine Linux): \< 7.1.2.15-r0
- chainguard imagemagick-6 (Chainguard): All versions (No fix recorded)
- debian imagemagick (Debian): \< 8:7.1.1.43+dfsg1-1+deb13u6 \| \< 8:7.1.2.15+dfsg1-1
- ubuntu imagemagick (Ubuntu): \< 8:7.1.2.3+dfsg1-1ubuntu0.1
- imagemagick imagemagick: \< 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-HDRI-x86 (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

## 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>
- <https://ubuntu.com/security/CVE-2026-25794>
- <https://www.cve.org/CVERecord?id=CVE-2026-25794>
- <https://ubuntu.com/security/notices/USN-8263-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-25794>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25794.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25794>
- <https://github.com/ImageMagick/ImageMagick/commit/ffe589df5ff8ce1433daa4ccb0d2a9fadfbe30ed>
- <https://github.com/ImageMagick/ImageMagick>
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3>
- <https://security.alpinelinux.org/vuln/CVE-2026-25794>

---

Data as of 2026-12-05T05:11:26.988Z. 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
