CVE-2026-116158

ImageMagick before 7.1.2-33 Memory Leak in magick compare

Published Oct 25, 2026 CVSS 4.0 · 2 Low EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the magick compare command caused by missing cleanup when an operation fails. Attackers can supply inputs that trigger repeated failed compare operations to exhaust memory and cause denial of service.

Analysis

AI-generated

Technical impact

ImageMagick versions prior to 7.1.2‑33 contain a memory leak in the magick compare command caused by missing cleanup when an operation fails. This flaw allows an attacker to provide crafted input that triggers repeated failed compare operations, each leaking memory. Over time the process exhausts available memory, leading to a denial of service. The vulnerability corresponds to improper disposal of memory resource (CWE‑401) and can impact the availability of any services that depend on ImageMagick for image processing.

Affected Systems

All installations of ImageMagick before version 7.1.2‑33 are affected. Users running earlier releases and invoking the magick compare command with untrusted input are at risk. The issue does not affect newer releases (7.1.2‑33 and later).

Risk and Exploitability

The CVSS score of 2.0 indicates low overall severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by supplying maliciously crafted compare inputs. If an application processes images from external sources, remote exploitation is possible; local exploitation requires the ability to execute the compare command. As the impact is a denial of service, the risk is primarily in availability degradation rather than confidentiality or integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the ImageMagick release 7.1.2‑33 or later to eliminate the memory‑leak issue.
  • If an upgrade is not immediately possible, limit the number of concurrent compare operations or restrict input size to reduce the chance of exhausting memory.
  • Configure resource limits such as ulimit or container cgroup restrictions so that the system or application cannot be taken down by a memory‑exhaustion attack.

Generated by OpenCVE AI on October 26, 2026 at 01:23 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-33 contains a memory leak vulnerability in the magick compare command caused by missing cleanup when an operation fails. Attackers can supply inputs that trigger repeated failed compare operations to exhaust memory and cause denial of service.
Title ImageMagick before 7.1.2-33 Memory Leak in magick compare
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': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/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

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

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