---
id: CVE-2026-105400
title: >-
  ImageMagick before 7.1.2-31 contains a resource leak vulnerability that allows
  attackers to leave file pointers open by supplying a crafted magick script
summary: >-
  ImageMagick before 7.1.2-31 contains a resource leak vulnerability that allows
  attackers to leave file pointers open by supplying a crafted magick script.
  Attackers can process malicious magick scripts to leak file descriptors,
  potential…
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-775
vendor: ImageMagick
product: ImageMagick
affected:
  - ImageMagick < 7.1.2-31
published: '2026-10-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T15:17:33.127'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105400'
references:
  - url: >-
      https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-2w4h-697j-4vrm
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-31-unclosed-file-pointer-via-magick-script
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-08T14:51:41.426479Z'
ingestedAt: '2026-10-08T14:47:16.363Z'
---

## Overview

ImageMagick before 7.1.2-31 contains a resource leak vulnerability that allows attackers to leave file pointers open by supplying a crafted magick script. Attackers can process malicious magick scripts to leak file descriptors, potentially exhausting resources and causing denial of service.

## Remediation

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