Vulnerability · Published Feb 24, 2026 · Assigned by GitHub_M

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

High 8.2

In plain English

A high-severity heap buffer overflow in ImageMagick from ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.5%top 59.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22imagemagick7.1.2.15-r0ALPINE-CVE-2026-25794
Alpine:v3.23imagemagick7.1.2.15-r0ALPINE-CVE-2026-25794
Alpine:v3.24imagemagick7.1.2.15-r0ALPINE-CVE-2026-25794
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u6DEBIAN-CVE-2026-25794
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u6DSA-6158-1
Debian:14imagemagick8:7.1.2.15+dfsg1-1DEBIAN-CVE-2026-25794
NuGetmagick.net-q16-anycpu14.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-anycpu14.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-openmp-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-openmp-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-hdri-x8614.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-openmp-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-openmp-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-openmp-x8614.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q16-x8614.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-anycpu14.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-openmp-arm6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-openmp-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-x6414.10.3GHSA-vhqj-f5cj-9x8h
NuGetmagick.net-q8-x8614.10.3GHSA-vhqj-f5cj-9x8h
Ubuntu:25.10imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1UBUNTU-CVE-2026-25794
Ubuntu:25.10imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1USN-8263-1

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick < 7.1.2-15

Weakness: CWE-122, CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

References