CVE-2026-30937 — ImageMagick has heap buffer overflow in...
ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.16%). Schedule for your next planned update.
Does your project use an affected Magick.NET-Q16-x64 version?
Paste your packages.lock.json to check it for CVE-2026-30937 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published March 12, 2026 (259 days ago).
- Last revised March 14, 2026 — 2 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Magick.NET-Q16-x64 --version 14.10.4
dotnet add package Magick.NET-Q16-OpenMP-x86 --version 14.10.4
dotnet add package Magick.NET-Q8-arm64 --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.4
dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.4
dotnet add package Magick.NET-Q16-arm64 --version 14.10.4
dotnet add package Magick.NET-Q8-x64 --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.4
dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.4
dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.4
dotnet add package Magick.NET-Q8-x86 --version 14.10.4
dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.4
dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.4
dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.4
dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.4
dotnet add package Magick.NET-Q16-x86 --version 14.10.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (19)
Affects 1 ecosystem: NuGet (19).
| Package | Fixed In |
|---|---|
| Magick.NET-Q16-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+222 more) | 14.10.4 |
| Magick.NET-Q16-OpenMP-x86 NuGet · Affected: All versions | 14.10.4 |
| Magick.NET-Q8-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+203 more) | 14.10.4 |
| Magick.NET-Q8-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q16-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q8-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+222 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+203 more) | 14.10.4 |
| Magick.NET-Q16-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+103 more) | 14.10.4 |
| Magick.NET-Q8-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+206 more) | 14.10.4 |
| Magick.NET-Q8-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+222 more) | 14.10.4 |
| Magick.NET-Q16-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+51 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+203 more) | 14.10.4 |
| Magick.NET-Q16-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+206 more) | 14.10.4 |
| Magick.NET-Q16-HDRI-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+103 more) | 14.10.4 |
| Magick.NET-Q8-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+103 more) | 14.10.4 |
| Magick.NET-Q16-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+222 more) | 14.10.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-122
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
References
Frequently Asked Questions
- What is CVE-2026-30937?
- ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
- How do I check if my project is affected by CVE-2026-30937?
- CVE-2026-30937 affects Magick.NET-Q16-x64, Magick.NET-Q16-OpenMP-x86 and Magick.NET-Q8-arm64 (and 16 more). It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-30937 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 3.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-25897MEDIUM
ImageMagick: Heap overflow in sun decoder on 32-bit systems may result in out of bounds write
- CVE-2026-30935MEDIUM
ImageMagick has Heap Buffer Over-Read in BilateralBlurImage
- CVE-2023-1289MEDIUM
ImageMagick: Specially crafted SVG leads to segmentation fault and generate trash files in "/tmp", possible to leverage DoS
- CVE-2026-30883MEDIUM
ImageMagick is vulnerable to Heap Overflow when writing extremely large image profile in the PNG encoder
- CVE-2026-56364MEDIUM
ImageMagick has a Memory Leak in LoadOpenCLDeviceBenchmark() when parsing malformed XML
- CVE-2026-27798MEDIUM
ImageMagick: Heap Buffer Over-read in WaveletDenoise when processing small images
- CVE-2026-26284MEDIUM
ImageMagick: Heap overflow in pcd decoder leads to out of bounds read.
- CVE-2026-25970MEDIUM
ImageMagick Has Signed Integer Overflow in SIXEL Decoder, Leading to Memory Corruption