---
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
  - CWE-772
vendor: ImageMagick
product: ImageMagick
affected:
  - ImageMagick < 7.1.2-33
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-26T19:39:21.951991Z'
published: '2026-10-25'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T19:48:36.208Z'
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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-116158.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-116158'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2560397'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-116158'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-116158'
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00103
epssPercentile: 0.00978
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.

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · updated 2026-10-25 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-116158.json)
