CVE-2026-116154

ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 Memory Leak via XML Parsing Depth Limit

Published Oct 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in its XML parsing code, where allocated memory is not released when parsing reaches the nesting depth limit. Attackers can supply crafted, deeply nested XML data to trigger the leak, causing memory exhaustion and denial of service.

Analysis

AI-generated

Technical impact

ImageMagick versions before 6.9.13-58 and 7.x before 7.1.2-33 contain a memory leak in the XML parsing component. When parsing reaches the configured nesting depth limit, allocated memory is not freed, allowing an attacker to supply deeply nested XML data that repeatedly triggers the leak. The resulting memory exhaustion can crash the ImageMagick process or degrade system performance, effectively denying service to legitimate users. This vulnerability is classified as improper memory management (CWE-401) and failure to release memory (CWE-772).

Affected Systems

The vulnerability affects the ImageMagick software suite, including both the 6.x and 7.x branches. Specifically, any release of ImageMagick prior to 6.9.13‑58 in the 6.x line and prior to 7.1.2‑33 in the 7.x line are impacted. Users who have these older versions installed on servers, web applications, or any environment that processes XML files with ImageMagick should be aware of the risk.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. No EPSS score is available, so the exploitation probability is unknown. The vulnerability is not listed in the CISA KEV catalog. Attackers can trigger the memory leak by feeding crafted XML data that exceeds the parser's nesting depth limit. The attack vector is inferred to be remote if ImageMagick is exposed to network input (e.g., via a web service), or local if a user can run ImageMagick with the malicious data. The denial of service impact applies to the entire system or application that depends on the affected ImageMagick instance.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 6.9.13-58 or newer, or 7.1.2-33 or newer, which includes the memory leak fix.
  • Disable or limit XML parsing in ImageMagick if XML processing is not required, by configuring appropriate options or using a stripped‑down build.
  • Implement resource limits (e.g., ulimit, container memory caps) on the ImageMagick process to bound memory usage and prevent exhaustion in case of a leak.

Generated by OpenCVE AI on October 26, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4875-1 imagemagick security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in its XML parsing code, where allocated memory is not released when parsing reaches the nesting depth limit. Attackers can supply crafted, deeply nested XML data to trigger the leak, causing memory exhaustion and denial of service.
Title ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 Memory Leak via XML Parsing Depth Limit
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-401
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 26, 2026, 7:58 PM
Reserved
Oct 25, 2026, 12:22 PM
Status
Analyzed
Published
Oct 25, 2026, 2:16 PM
Modified
Nov 3, 2026, 6:28 PM
Severity
Moderate
Public date
Oct 25, 2026, 1:20 PM