# CVE-2026-109267: ImageMagick stack overflow in MSL decoder

Source: https://junglewise.ai/threats/cve-2026-109267-imagemagick-before-6-9-13-57-and-7-x-before-7-1-2-32-contains-a  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-12. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-109267 · Severity: medium · CVSS 5.3 · Published 2026-10-12

ImageMagick is an image processing library used across many applications to convert and manipulate images. A vulnerability in its MSL (Magick Scripting Language) image decoder allows attackers to provide specially crafted images that consume all available memory on the stack, causing the application to crash. This denial-of-service condition can disrupt services that rely on ImageMagick to process user-supplied images.

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

## Quick answers

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

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

**Which products and versions are affected?** ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32.

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

**How is CVE-2026-109267 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-109267?** 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 6.9.13-57, 7.1.2-32

## Technical details

The MSL decoder contains an uncontrolled recursion vulnerability caused by an incorrect depth check that fails to limit how deeply the decoder can recurse when processing nested MSL structures. An attacker supplying a crafted MSL image can trigger unbounded recursion that exhausts the stack, crashing the process. The fix corrects the depth-checking logic to properly prevent excessive recursion.

## Affected products

- ImageMagick ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32

## Timeline

- 2026-09-27: disclosed
- 2026-10-12: advisory

## References

- [https://github.com/ImageMagick/ImageMagick/commit/507aee2308046b25e251d0be1a5371327bb79683](https://github.com/ImageMagick/ImageMagick/commit/507aee2308046b25e251d0be1a5371327bb79683)
- [https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-462x-739v-qvq2](https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-462x-739v-qvq2)

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