CVE-2026-33908
HIGH7.5EPSS 0.02%ImageMagick has a Stack Overflow in DestroyXMLTree()
Published: 4/14/2026Modified: 5/17/2026
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, 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. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.
Affected packages (18)
- Debian/imagemagickfrom 0, < 8:6.9.11.60+dfsg-1.3+deb11u12
- NuGet/Magick.NET-Q16-AnyCPUfrom 0, < 14.12.0
- NuGet/Magick.NET-Q16-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-HDRI-AnyCPUfrom 0, < 14.12.0
- NuGet/Magick.NET-Q16-HDRI-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-HDRI-OpenMP-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-HDRI-x64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-HDRI-x86from 0, < 14.12.0
- NuGet/Magick.NET-Q16-OpenMP-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-OpenMP-x64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-x64from 0, < 14.12.0
- NuGet/Magick.NET-Q16-x86from 0, < 14.12.0
- NuGet/Magick.NET-Q8-AnyCPUfrom 0, < 14.12.0
- NuGet/Magick.NET-Q8-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q8-OpenMP-arm64from 0, < 14.12.0
- NuGet/Magick.NET-Q8-OpenMP-x64from 0, < 14.12.0
- NuGet/Magick.NET-Q8-x64from 0, < 14.12.0
- NuGet/Magick.NET-Q8-x86from 0, < 14.12.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-33908
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-33908
- PATCHhttps://github.com/ImageMagick/ImageMagick
- WEBhttps://github.com/dlemstra/Magick.NET/releases/tag/14.12.0
- WEBhttps://github.com/ImageMagick/ImageMagick/commit/ccdc01180276aa2cb3d4a32a611aa4f417061cd8
- WEBhttps://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
- WEBhttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fwvm-ggf6-2p4x