ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation
Moderate severity
GitHub Reviewed
Published
Mar 9, 2026
in
ImageMagick/ImageMagick
•
Updated Mar 12, 2026
Description
Published by the National Vulnerability Database
Mar 10, 2026
Published to the GitHub Advisory Database
Mar 12, 2026
Reviewed
Mar 12, 2026
Last updated
Mar 12, 2026
A 32-bit unsigned integer overflow in the XWD (X Windows) encoder can cause an undersized heap buffer allocation. When writing a extremely large image an out of bounds heap write can occur.
References