CVE-2026-33908 — ImageMagick has a Stack Overflow in...
ImageMagick has a Stack Overflow in DestroyXMLTree()
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.73%). Schedule for your next planned update.
Does your project use an affected Magick.NET-Q8-arm64 version?
Paste your packages.lock.json to check it for CVE-2026-33908 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
Magick frees the memory of the XML tree via the DestroyXMLTree function; however, this process is executed recursively with no depth limit imposed. When magick processes an XML file with deeply nested structures, it will exhaust the stack memory, resulting in a Denial of Service (DoS) attack.
Advisory Timeline
- First published April 14, 2026 (226 days ago).
- Last revised April 21, 2026 — 7 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Magick.NET-Q8-arm64 --version 14.12.0
dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.12.0
dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.12.0
dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.12.0
dotnet add package Magick.NET-Q8-x64 --version 14.12.0
dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.12.0
dotnet add package Magick.NET-Q16-x64 --version 14.12.0
dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.12.0
dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.12.0
dotnet add package Magick.NET-Q16-arm64 --version 14.12.0
dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.12.0
dotnet add package Magick.NET-Q16-x86 --version 14.12.0
dotnet add package Magick.NET-Q16-AnyCPU --version 14.12.0
dotnet add package Magick.NET-Q8-AnyCPU --version 14.12.0
dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.12.0
dotnet add package Magick.NET-Q8-x86 --version 14.12.0
dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.12.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (17)
Affects 1 ecosystem: NuGet (17).
| Package | Fixed In |
|---|---|
| Magick.NET-Q8-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q16-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+106 more) | 14.12.0 |
| Magick.NET-Q16-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q8-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+106 more) | 14.12.0 |
| Magick.NET-Q8-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+225 more) | 14.12.0 |
| Magick.NET-Q8-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q16-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+225 more) | 14.12.0 |
| Magick.NET-Q16-HDRI-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+206 more) | 14.12.0 |
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q16-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q16-HDRI-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+206 more) | 14.12.0 |
| Magick.NET-Q16-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+225 more) | 14.12.0 |
| Magick.NET-Q16-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+209 more) | 14.12.0 |
| Magick.NET-Q8-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+209 more) | 14.12.0 |
| Magick.NET-Q16-HDRI-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+54 more) | 14.12.0 |
| Magick.NET-Q8-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+225 more) | 14.12.0 |
| Magick.NET-Q16-HDRI-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+206 more) | 14.12.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-674
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fwvm-ggf6-2p4xWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-33908ADVISORY
- https://github.com/ImageMagick/ImageMagick/commit/ccdc01180276aa2cb3d4a32a611aa4f417061cd8WEB
- https://github.com/ImageMagick/ImageMagickPACKAGE
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19WEB
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0WEB
Frequently Asked Questions
- What is CVE-2026-33908?
- ImageMagick has a Stack Overflow in DestroyXMLTree(). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-33908?
- CVE-2026-33908 affects Magick.NET-Q8-arm64, Magick.NET-Q16-OpenMP-x64 and Magick.NET-Q16-OpenMP-arm64 (and 14 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33908 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 50.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-47166MEDIUM
ImageMagick: Heap Buffer Over-Read in distributed pixel cache server
- CVE-2025-55160MEDIUM
ImageMagick has Undefined Behavior (function-type-mismatch) in CloneSplayTree
- CVE-2026-33899MEDIUM
ImageMagick has a heap-Buffer-Overflow write of a single zero byte when parsing xml.
- CVE-2026-45358MEDIUM
ImageMagick: Out-of-Bounds Read of a single byte in meta encoder
- GHSA-jqq5-8px3-9m6mMEDIUM
ImageMagick: Heap Buffer Over-Write in json and yaml encoder of a single byte due to incorrect fix
- CVE-2026-28688MEDIUM
ImageMagick has heap use-after-free in the MSL encoder
- CVE-2026-61867LOW
ImageMagick: Memory Leak in TIFF encoder when an allocation fails
- CVE-2026-56369LOW
ImageMagick: Information Disclosure in PasskeyEncipherImage via AES-CTR nonce reuse