---
id: CVE-2026-116158
title: ImageMagick before 7.1.2-33 Memory Leak in magick compare
summary: >-
  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
  memo…
severity: low
cvss: 2.5
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-401
vendor: ImageMagick
product: ImageMagick
affected:
  - ImageMagick < 7.1.2-33
published: '2026-10-25'
updated: '2026-10-25'
sourceUpdated: '2026-10-25T13:20:04.263Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116158'
references:
  - url: >-
      https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-m938-565c-h9qf
    label: GitHub Security Advisory (GHSA-m938-565c-h9qf)
  - url: >-
      https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-memory-leak-in-magick-compare
    label: >-
      VulnCheck Advisory: ImageMagick before 7.1.2-33 Memory Leak in magick
      compare
tags:
  - cve.org
ingestedAt: '2026-10-25T22:08:29.950Z'
---

## Overview

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.

## Affected

- `ImageMagick < 7.1.2-33`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
