# CVE-2026-116152: ImageMagick memory leak in MAT decoder

Source: https://junglewise.ai/threats/cve-2026-116152-imagemagick-before-7-1-2-33-contains-a-memory-leak-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-25. Updated: 2026-10-25  
License: CC BY 4.0 with a link back

CVE-2026-116152 · Severity: medium · CVSS 5.3 · Published 2026-10-25

ImageMagick is a widely-used image processing library used in web applications, content management systems, and server infrastructure. A memory leak vulnerability in its MAT file decoder allows attackers to gradually consume server memory by sending specially-crafted MAT image files, potentially causing service degradation or denial of service.

Technologies: [ImageMagick](https://junglewise.ai/threats/technologies/imagemagick). Vendors: [ImageMagick](https://junglewise.ai/threats/vendors/imagemagick).

## Quick answers

**Is CVE-2026-116152 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-116152 being exploited in the wild.

**How severe is CVE-2026-116152?** Medium severity, with a CVSS score of 5.3, published 25 October 2026.

**Which products and versions are affected?** ImageMagick before 7.1.2-33.

**Is there a fix for CVE-2026-116152?** Yes: fixed in 7.1.2-33. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-116152 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-116152?** Check whether you run ImageMagick at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 7.1.2-33

## Technical details

The MAT decoder fails to release allocated memory in a specific error path (CWE-401), allowing repeated small memory leaks when processing crafted MAT files. An attacker can trigger this error path remotely by supplying malicious MAT files over the network with no authentication or user interaction required, causing the vulnerable process to gradually exhaust available memory.

## Affected products

- ImageMagick ImageMagick before 7.1.2-33

## Timeline

- 2026-10-10: advisory
- 2026-10-25: disclosed

## References

- [https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-83w9-w85j-h9jc](https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-83w9-w85j-h9jc)
- [https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-memory-leak-in-mat-decoder-error-path](https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-memory-leak-in-mat-decoder-error-path)

## Related threats

- [ImageMagick infinite loop in SVG decoder](https://junglewise.ai/threats/cve-2026-123273-imagemagick-before-7-1-2-35-and-6-9-13-60-contains-an-infinite)
- [ImageMagick memory leak in XMP profile handling](https://junglewise.ai/threats/cve-2026-116155-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick memory leak in XML parsing depth limit](https://junglewise.ai/threats/cve-2026-116154-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick stack buffer overflow in bzip2 decompression](https://junglewise.ai/threats/cve-2026-116149-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick policy bypass in UHDR decoder](https://junglewise.ai/threats/cve-2026-116141-imagemagick-before-7-1-2-33-contains-a-policy-bypass)
