Buffer overflow in Imagemagick

CVE-2026-25794

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H.

EPSS exploit prediction

EPSS: 0.006 (46.1th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 46th percentile — 46.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-25794: held from 0.004 to 0.006.

EPSS over last 30 days · oldest: 0.004 · newest: 0.006 · change: +0.002

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-25794?
CVE-2026-25794 is a high-severity vulnerability in Imagemagick, classified under Heap-based Buffer Overflow. CVSS score: 8.2/10. Published 2026-02-24.
How severe is CVE-2026-25794?
High severity. CVSS v3 base score is 8.2 out of 10.