Launch Week Day 1: Announcing Security Design Review
MEDIUM 6.8 NuGet

ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation

GHSA-qpg4-j99f-8xcg · CVE-2026-30937

Published · Modified

Description

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.

=================================================================
==741961==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x5020000083dc at pc 0x56553b4c4245 bp 0x7ffd9d20fef0 sp 0x7ffd9d20fee0
WRITE of size 1 at 0x5020000083dc thread T0

Ready to move

Start Securing

Free, no credit card | First findings in minutes