Vulnerability · Published Mar 9, 2026 · Assigned by GitHub_M

CVE-2026-30937ImageMagick has a heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation

Medium 6.8

In plain English

A medium-severity heap buffer overflow in ImageMagick from ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.1%top 98.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23imagemagick7.1.2.17-r0ALPINE-CVE-2026-30937
Alpine:v3.24imagemagick7.1.2.17-r0ALPINE-CVE-2026-30937
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u8DEBIAN-CVE-2026-30937
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u7DEBIAN-CVE-2026-30937
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u7DSA-6169-1
Debian:14imagemagick8:7.1.2.16+dfsg1-1DEBIAN-CVE-2026-30937
NuGetmagick.net-q16-anycpu14.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-anycpu14.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-openmp-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-openmp-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-hdri-x8614.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-openmp-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-openmp-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-openmp-x8614.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q16-x8614.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-anycpu14.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-openmp-arm6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-openmp-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-x6414.10.4GHSA-qpg4-j99f-8xcg
NuGetmagick.net-q8-x8614.10.4GHSA-qpg4-j99f-8xcg
Ubuntu:25.10imagemagickno fix listedUBUNTU-CVE-2026-30937

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick >= 7.0.0, < 7.1.2-16< 6.9.13-41

Weakness: CWE-122, CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

References