ImageMagick has heap-buffer-overflow via signed integer overflow in WriteUHDRImage when writing UHDR images with large dimensions
High severity
GitHub Reviewed
Published
Feb 23, 2026
in
ImageMagick/ImageMagick
•
Updated Feb 24, 2026
Description
Published by the National Vulnerability Database
Feb 24, 2026
Published to the GitHub Advisory Database
Feb 24, 2026
Reviewed
Feb 24, 2026
Last updated
Feb 24, 2026
WriteUHDRImageincoders/uhdr.cusesintarithmetic to compute the pixel buffer size. When image dimensions are large, the multiplication overflows 32-bitint, 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.References