CVE-2026-30937Heap-based Buffer Overflow in Imagemagick

Severity
6.1MEDIUMNVD
CNA6.8
EPSS
0.0%
top 96.15%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 10
Latest updateMar 12

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, 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. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:HExploitability: 1.8 | Impact: 4.2

Affected Packages3 packages

CVEListV5imagemagick/imagemagick< 6.9.13-41+1
NVDimagemagick/imagemagick7.0.0-07.1.2-16+1
Debianimagemagick/imagemagick< 8:7.1.1.43+dfsg1-1+deb13u7+1

🔴Vulnerability Details

4
OSV
ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation2026-03-12
GHSA
ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation2026-03-12
OSV
CVE-2026-30937: ImageMagick is free and open-source software used for editing and manipulating digital images2026-03-10
CVEList
ImageMagick has a heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation2026-03-09

📋Vendor Advisories

2
Red Hat
ImageMagick: ImageMagick: Denial of Service via integer overflow in XWD encoder2026-03-09
Debian
CVE-2026-30937: imagemagick - ImageMagick is free and open-source software used for editing and manipulating d...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-30937 Impact, Exploitability, and Mitigation Steps | Wiz