CVE-2026-106575

ImageMagick: Unclosed file pointer in magick script

Published Oct 7, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-31, a crafted Magick script can cause an opened file pointer to remain unclosed, allowing repeated processing to exhaust available file descriptors. This issue is fixed in version 7.1.2-31.

Analysis

AI-generated

Technical impact

A crafted Magick script can leave an opened file pointer unclosed during processing, causing ImageMagick to consume file descriptors with each run. Repeated executions eventually exhaust the system's available descriptors, leading to resource exhaustion that manifests as a denial of service for the user or the application that relies on ImageMagick. The weakness is captured by CWE-772 and CWE-775.

Affected Systems

The issue affects installations of ImageMagick 7.1.x prior to version 7.1.2‑31 on any platform where Magick scripts are executed. It is present in the core ImageMagick component distributed as ImageMagick:ImageMagick.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate risk. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local user or a process that can supply a malicious Magick script; if the service running ImageMagick has elevated privileges or the script is processed automatically, the impact could affect system availability. Exploitation requires the attacker to trigger repeated processing to deplete file descriptors, which may require persistence or repeated input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑31 or later, which fixes the file descriptor leak.
  • If an upgrade cannot be performed immediately, configure ImageMagick to run only trusted scripts under a least‑privileged user account to limit the scope of the exhaustion.
  • Implement resource limits such as ulimit or system‑wide quotas to cap the number of file descriptors per process or per user, reducing the potential impact of a leaked descriptor.

Generated by OpenCVE AI on October 8, 2026 at 13:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-31, a crafted Magick script can cause an opened file pointer to remain unclosed, allowing repeated processing to exhaust available file descriptors. This issue is fixed in version 7.1.2-31.
Title ImageMagick: Unclosed file pointer in magick script
Weaknesses CWE-775
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

  • CWE-775

    Missing Release of File Descriptor or Handle after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 7, 2026, 5:37 PM
Reserved
Oct 6, 2026, 8:31 PM
Status
Analyzed
Published
Oct 7, 2026, 4:17 PM
Modified
Oct 21, 2026, 6:12 PM
Severity
Moderate
Public date
Oct 7, 2026, 3:36 PM