CVE-2026-25794ImageMagick has heap-buffer-overflow via signed integer overflow in `WriteUHDRImage`…
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | imagemagick | Fixed | 8:7.1.2.3+dfsg1-1ubuntu0.1 | UBUNTU-CVE-2026-25794 |
| Debian 14 | imagemagick | Fixed | 8:7.1.2.15+dfsg1-1 | DEBIAN-CVE-2026-25794 |
| Debian 13 | imagemagick | Fixed | 8:7.1.1.43+dfsg1-1+deb13u6 | DEBIAN-CVE-2026-25794 |
| Red Hat Enterprise Linux 7 | ImageMagick | Not affected | ||
| Red Hat Enterprise Linux 7 | ImageMagick-c++ | Not affected | ||
| Red Hat Enterprise Linux 7 | ImageMagick-c++-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ImageMagick-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ImageMagick-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ImageMagick-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | ImageMagick | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ImageMagick-c++ | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ImageMagick-c++-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ImageMagick-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ImageMagick-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ImageMagick-perl | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | imagemagick | Fixed | 7.1.2.15-r0 | ALPINE-CVE-2026-25794 |
| Alpine Linux 3.23 | imagemagick | Fixed | 7.1.2.15-r0 | ALPINE-CVE-2026-25794 |
| Alpine Linux 3.22 | imagemagick | Fixed | 7.1.2.15-r0 | ALPINE-CVE-2026-25794 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ImageMagick: affected: < 7.1.2-15
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.