---
id: CVE-2026-109267
title: >-
  ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a stack overflow
  in the MSL decoder caused by an incorrect depth check that fails to limit
  recursion
summary: >-
  ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a stack overflow
  in the MSL decoder caused by an incorrect depth check that fails to limit
  recursion. Attackers can supply a set of crafted MSL images that exhaust the
  stack w…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cwe:
  - CWE-674
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T17:17:18.777'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109267'
references:
  - url: >-
      https://github.com/ImageMagick/ImageMagick/commit/507aee2308046b25e251d0be1a5371327bb79683
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-462x-739v-qvq2
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ImageMagick/ImageMagick6/commit/c10823904b251d07fe79346a7136b0af295d451b
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/imagemagick-before-6.9.13-57-and-7-x-before-7.1.2-32-stack-overflow-in-msl-decoder
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-12T18:00:08.182Z'
---

## Overview

ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a stack overflow in the MSL decoder caused by an incorrect depth check that fails to limit recursion. Attackers can supply a set of crafted MSL images that exhaust the stack when one of them is read, crashing the process and causing a denial of service.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
