| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| imagemagick (PTS) | bullseye | 8:6.9.11.60+dfsg-1.3+deb11u4 | fixed |
| bullseye (security) | 8:6.9.11.60+dfsg-1.3+deb11u9 | fixed | |
| bookworm | 8:6.9.11.60+dfsg-1.6+deb12u5 | fixed | |
| bookworm (security) | 8:6.9.11.60+dfsg-1.6+deb12u6 | fixed | |
| trixie | 8:7.1.1.43+dfsg1-1+deb13u4 | vulnerable | |
| trixie (security) | 8:7.1.1.43+dfsg1-1+deb13u6 | vulnerable | |
| forky, sid | 8:7.1.2.15+dfsg1-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| imagemagick | source | bullseye | (not affected) | |||
| imagemagick | source | bookworm | (not affected) | |||
| imagemagick | source | (unstable) | 8:7.1.2.15+dfsg1-1 |
[bookworm] - imagemagick <not-affected> (vulnerable code introduced later)
[bullseye] - imagemagick <not-affected> (vulnerable code introduced later)
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vhqj-f5cj-9x8h
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/ffe589df5ff8ce1433daa4ccb0d2a9fadfbe30ed (7.1.2-14)
Introduced by: https://github.com/ImageMagick/ImageMagick/commit/4b85373fcd4de75118c0bb62266b66f8245906ec (7.1.1-30)