CVE-2026-25794Heap-based Buffer Overflow in Imagemagick

Severity
8.2HIGHNVD
EPSS
0.1%
top 82.10%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 24

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HExploitability: 3.9 | Impact: 4.2

Affected Packages3 packages

debiandebian/imagemagick< imagemagick 8:7.1.2.15+dfsg1-1 (forky)
NVDimagemagick/imagemagick< 7.1.2-15
Debianimagemagick/imagemagick< 8:7.1.1.43+dfsg1-1+deb13u6+1

🔴Vulnerability Details

3
GHSA
ImageMagick has heap-buffer-overflow via signed integer overflow in WriteUHDRImage when writing UHDR images with large dimensions2026-02-24
OSV
CVE-2026-25794: ImageMagick is free and open-source software used for editing and manipulating digital images2026-02-24
OSV
ImageMagick has heap-buffer-overflow via signed integer overflow in WriteUHDRImage when writing UHDR images with large dimensions2026-02-24

📋Vendor Advisories

2
Red Hat
ImageMagick: ImageMagick: Denial of service and potential arbitrary code execution via integer overflow in image processing2026-02-24
Debian
CVE-2026-25794: imagemagick - ImageMagick is free and open-source software used for editing and manipulating d...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-25794 Impact, Exploitability, and Mitigation Steps | Wiz