CVE-2026-66011

ImageMagick before 7.1.2-27 Memory Leak via Invalid CLI Options

Published Jul 25, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-27 contains a memory leak vulnerability in the magick command-line interface when invalid options are provided. Attackers can trigger memory exhaustion by repeatedly supplying malformed command-line arguments to consume system resources.

Analysis

AI-generated

Technical impact

Memory is leaked when the ImageMagick CLI receives malformed command‑line arguments, causing the tool to allocate resources that are never freed. The leakage can be repeated, cumulatively exhausting the host’s memory pool and potentially crashing the process or the system. The flaw illustrates a CWE‑401 Memory Management: Resource Leak weakness that directly undermines availability by allowing an attacker to deplete service resources.

Affected Systems

Any host running ImageMagick before release 7.1.2‑27, regardless of operating system, is vulnerable when the command‑line tool "magick" is invoked with arbitrary or malformed options. Users or scripts that pass unvalidated parameters to magick are at risk.

Risk and Exploitability

The vulnerability has a CVSS score of 4.8, indicating moderate severity, and an EPSS score of less than 1 %, suggesting that exploitation is unlikely but not impossible. It is not listed in the CISA KEV catalog. The CVE description indicates that the vulnerability is triggered by providing malformed command‑line arguments to the magick tool; the attack vector is not explicitly remote but requires the ability to invoke the tool with such arguments. By repeatedly supplying invalid options, an attacker can potentially exhaust system memory and cause denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑27 or later to remove the memory leak
  • Restrict execution of the magick command to trusted users or environments so that unvalidated input cannot be supplied
  • Implement resource limits (e.g., ulimit, cgroups) on processes that run magick to prevent a single instance from consuming all available memory

Generated by OpenCVE AI on August 3, 2026 at 18:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description ImageMagick before 7.1.2-27 contains a memory leak vulnerability in the magick command-line interface when invalid options are provided. Attackers can trigger memory exhaustion by repeatedly supplying malformed command-line arguments to consume system resources.
Title ImageMagick before 7.1.2-27 Memory Leak via Invalid CLI Options
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': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

cvssV4_0

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

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 27, 2026, 4:18 PM
Reserved
Jul 23, 2026, 7:22 PM
Status
Analyzed
Published
Jul 25, 2026, 11:17 AM
Modified
Aug 4, 2026, 1:52 PM
Severity
Low
Public date
Jul 25, 2026, 10:45 AM