# CVE-2026-106578: ImageMagick invalid memory free in MVG decoder

Source: https://junglewise.ai/threats/cve-2026-106578-imagemagick-is-free-and-open-source-software-used-for-editing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-07. Updated: 2026-10-21  
License: CC BY 4.0 with a link back

CVE-2026-106578 · Severity: medium · CVSS 5.9 · Published 2026-10-07

ImageMagick is software that processes and manipulates digital images. A malicious image file can trigger an invalid memory deallocation in the MVG (Magick Vector Graphics) decoder, causing the application to crash. This could disrupt image processing operations or be leveraged as a denial-of-service vector if processing untrusted images.

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

## Quick answers

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

**How severe is CVE-2026-106578?** Medium severity, with a CVSS score of 5.9, published 7 October 2026.

**Which products and versions are affected?** ImageMagick prior to 7.1.2-31 and 6.9.13-56.

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

**How is CVE-2026-106578 attacked?** It is attacked over the network or with local access.

**Am I affected by CVE-2026-106578?** 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-31, 6.9.13-56

## Technical details

The vulnerability exists in the MVG decoder's RenderMVGContent function, where the CheckPrimitiveExtent call was made with an incorrect parameter, causing use of uninitialized heap memory and subsequent invalid free. The flaw is triggered when processing a crafted image via the MVG format, requiring no authentication or user privileges beyond the ability to supply an image file. An attacker can crash the process or potentially achieve code execution through heap corruption.

## Affected products

- ImageMagick ImageMagick prior to 7.1.2-31 and 6.9.13-56

## Timeline

- 2026-10-07: disclosed

## References

- [https://github.com/ImageMagick/ImageMagick/commit/5d29c094020612dc8fb471b10fc1d1cc6e9e4378](https://github.com/ImageMagick/ImageMagick/commit/5d29c094020612dc8fb471b10fc1d1cc6e9e4378)
- [https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-31](https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-31)

## 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 memory leak in MAT decoder](https://junglewise.ai/threats/cve-2026-116152-imagemagick-before-7-1-2-33-contains-a-memory-leak-vulnerability)
- [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)
