GitHub Advisoryadvisory · NuGet
GHSA-fwvm-ggf6-2p4x ImageMagick has a Stack Overflow in DestroyXMLTree()
HIGH
Official page ↗
- Aliases
- CVE-2026-33908
- Ecosystem
- NuGet
- Packages
- Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU, Magick.NET-Q16-HDRI-OpenMP-arm64, Magick.NET-Q16-HDRI-arm64, Magick.NET-Q16-HDRI-x64, Magick.NET-Q16-HDRI-x86, Magick.NET-Q16-OpenMP-arm64, Magick.NET-Q16-OpenMP-x64, Magick.NET-Q16-arm64, Magick.NET-Q16-x64, Magick.NET-Q16-x86, Magick.NET-Q8-AnyCPU, Magick.NET-Q8-OpenMP-arm64, Magick.NET-Q8-OpenMP-x64, Magick.NET-Q8-arm64, Magick.NET-Q8-x64, Magick.NET-Q8-x86
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-674
- Reviewed
- 2026-04-14
Affected packages
• NuGet Magick.NET-Q16-AnyCPU: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-HDRI-AnyCPU: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-HDRI-OpenMP-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-HDRI-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-HDRI-x64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-HDRI-x86: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-OpenMP-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-OpenMP-x64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-x64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q16-x86: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-AnyCPU: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-OpenMP-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-OpenMP-x64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-arm64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-x64: < 14.12.0 → fixed in 14.12.0
• NuGet Magick.NET-Q8-x86: < 14.12.0 → fixed in 14.12.0
Description
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.
Related
Alias · CVE (1)
- CVE-2026-33908 ImageMagick is free and open-source software used for editing and manipulating digital images. vulnerability
Weakness · CWE (1)
- CWE-674 Uncontrolled Recursion weakness
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fwvm-ggf6-2p4x web
- https://nvd.nist.gov/vuln/detail/CVE-2026-33908 advisory
- https://github.com/ImageMagick/ImageMagick/commit/ccdc01180276aa2cb3d4a32a611aa4f417061cd8 web
- https://github.com/ImageMagick/ImageMagick package
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 web
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 web