CVE-2026-109277

ImageMagick before 7.1.2-32 Policy Bypass via -script Operation

Published Oct 12, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-32 contains a policy bypass vulnerability in the -script operation due to missing checks on file descriptor handling. Attackers can use the -script operation to close file descriptors not opened by the current operation, circumventing configured security policies.

Analysis

AI-generated

Technical impact

ImageMagick before version 7.1.2-32 has a policy bypass vulnerability in the -script operation caused by missing checks on file descriptor handling. This flaw allows an attacker to close file descriptors that were not opened by the current operation, thereby circumventing any security policies configured for the image processing engine. The weakness is a form of improper resource management (CWE-404) and user-controlled key authorization bypass (CWE-283). While the vulnerability does not directly cause denial of service, it undermines the integrity of the policy enforcement system and can enable the execution of malicious scripts or other privileged actions that would normally be prohibited.

Affected Systems

ImageMagick products running a release before 7.1.2-32 are affected. The vulnerability applies to all builds of ImageMagick shipped prior to the 7.1.2‑32 patch level across all platforms.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate risk. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely local: an adversary who can invoke the -script operation (for example, by submitting a crafted image or script to an untrusted image processing service) can bypass configured policies. Because the flaw permits closing of arbitrary file descriptors, it may be leveraged to elevate privileges or execute additional privileged commands if the underlying system trusts the ImageMagick process. Additionally, the flaw represents an authorization bypass (CWE-283), which could allow attackers to override policy restrictions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-32 or newer to apply the fix that restores file descriptor validation.
  • If an upgrade cannot be performed immediately, restrict or disable the -script operation through the ImageMagick policy configuration to prevent policy bypass.
  • Verify that the policy files do not grant unrestricted script execution and remove any custom or permissive policies that could be abused.
  • Monitor for unusual usage of the -script command or abnormal image processing jobs that may indicate an attempt to exploit the vulnerability.

Generated by OpenCVE AI on October 13, 2026 at 01:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description ImageMagick before 7.1.2-32 contains a policy bypass vulnerability in the -script operation due to missing checks on file descriptor handling. Attackers can use the -script operation to close file descriptors not opened by the current operation, circumventing configured security policies.
Title ImageMagick before 7.1.2-32 Policy Bypass via -script Operation
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-404
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-283

    Unverified Ownership

  • CWE-404

    Improper Resource Shutdown or Release

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 2:36 AM
Reserved
Oct 12, 2026, 2:12 PM
Status
Analyzed
Published
Oct 12, 2026, 5:17 PM
Modified
Nov 3, 2026, 6:24 PM
Severity
Low
Public date
Oct 12, 2026, 4:04 PM