CVE-2026-33908: ImageMagick is vulnerable to Stack Overflow in DestroyXMLTree()
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.
Security readout for executives and security teams
Plain-English summary
ImageMagick can be crashed when it processes a deeply nested XML file. The issue affects versions before 6.9.13-44 and 7.1.2-19. The business impact is denial of service in systems that rely on ImageMagick for image or XML-related processing, especially where users can upload or submit files.
Executive priority
Treat this as a high-priority availability risk for public upload and file-processing services. Patch promptly, but escalation should focus on exposed processing pipelines rather than broad emergency response.
Technical view
The vulnerability is uncontrolled recursion in DestroyXMLTree() while freeing XML trees. A deeply nested XML structure can exhaust stack memory and terminate processing. CVSS 3.1 is 7.5 for network-reachable, unauthenticated availability impact. The listed CWEs are CWE-674 and CWE-776.
Likely exposure
Exposure is most likely in web applications, automation pipelines, or services that invoke vulnerable ImageMagick versions on user-supplied or externally sourced files.
Exploitation context
The source bundle does not show KEV listing or confirmed active exploitation. The known impact is denial of service, not data theft or code execution, based on the provided advisory data.
Researcher notes
Evidence supports stack exhaustion through recursive XML tree destruction. Do not assume code execution or active exploitation from the provided sources. Confirm downstream package status separately because distribution backports may not match upstream version numbers.
Mitigation direction
Upgrade ImageMagick to 6.9.13-44, 7.1.2-19, or later.
Prioritize systems that process files from untrusted users or external feeds.
Check vendor and distribution guidance for packaged ImageMagick builds.
Temporarily restrict untrusted XML or image processing where upgrades need scheduling.
Validation and detection
Inventory ImageMagick versions across hosts, containers, and build images.
Confirm no deployed ImageMagick is below 6.9.13-44 or 7.1.2-19.
Map application paths that pass external files into ImageMagick.
Review SBOMs and dependency manifests for bundled or transitive ImageMagick use.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-674: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-674 · source CWE mapping
Uncontrolled Recursion
Uncontrolled Recursion represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.