Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege ImageMagick invocation
-
DeliveryCraft malicious -script operation
-
ExploitClose file descriptors not opened by operation
-
ExecutionCircumvent configured security policy
-
ImpactDisrupt resource/availability on host
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource release
|
| Exploitation Conditions | Exploitation requires local, low-privilege ability to invoke ImageMagick's -script operation (PR:L, AV:L, UI:N), and is only meaningful in deployments that rely on ImageMagick's configured security policy (policy.xml) as a containment boundary for untrusted operations. The specific prerequisite is use of the -script feature where the handling of file descriptors not opened by the current operation was previously unchecked (versions before 7.1.2-32). Limiting factors: no remote vector, authenticated/low-privilege access needed, impact confined to availability (VA:L) with no confidentiality or integrity effect and no scope change to other systems; environments that do not expose -script to untrusted input or do not depend on policy restrictions are not materially affected. |
| Impact | This is a genuinely low-to-medium priority issue, and the signals are internally consistent rather than conflicting. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L) scores 4.8 and describes a LOCAL, low-privilege attack with no confidentiality or integrity impact and only LOW availability impact confined to the vulnerable system - there is no scope change to other systems (SC/SI/SA:N). No EPSS score was provided, the CVE is not in CISA KEV, and no public exploit was referenced, so there is no public exploit identified at time of analysis. The mechanism is a policy bypass: ImageMagick's -script operation can close file descriptors it did not open, circumventing restrictions administrators thought were enforced by the security policy. Because impact is limited to availability (closing descriptors), and the attacker already needs the ability to run ImageMagick with -script locally, this is a hardening/defense-in-depth weakness rather than a direct path to code execution or data theft. The 'Authentication Bypass' tag overstates the issue - the description describes bypass of a configured security POLICY, not authentication. Net: real and worth patching in environments that depend on ImageMagick policy restrictions as a sandbox boundary, but not an emergency. |
| Exploit ScenarioDerived | An attacker who can already submit or invoke ImageMagick operations (for example via a service that processes user-supplied conversion scripts under a restrictive policy.xml) crafts a -script operation that closes file descriptors it never opened. This circumvents the configured security policy's intended containment, potentially disrupting the handling of resources the operation was supposed to be sandboxed away from. No public exploit was referenced in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Local policy bypass in ImageMagick's -script operation (versions before 7.1.2-32) lets a low-privileged local user close file descriptors not opened by the current operation, undermining security restrictions configured in policy.xml. The flaw is a CWE-404 resource lifecycle issue (CVSS 4.0 base 4.8; assessed CVSS 3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L) with availability-only impact and no scope change; it is most relevant where policy.xml is used as a containment boundary for untrusted ImageMagick operations. No public exploit code or active exploitation was identified at time of analysis, and vendor-released patch 7.1.2-32 is available.
RemediationAI
Upgrade to ImageMagick 7.1.2-32 or later, which contains the vendor fix for the -script file descriptor handling issue (commit ce92ae07c2ca2c20c131eaf6da6da734c1cafce0). See the GitHub advisory GHSA-vv56-wmgw-m36w and VulnCheck advisory https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-32-policy-bypass-via-script-operation for details. If immediate upgrade is not possible, remove or restrict the -script operation in policy.xml for untrusted users if that operation is not required; trade-off: disabling -script can break legitimate automation that depends on scripted ImageMagick workflows. Alternatively, restrict invocation of ImageMagick (especially -script) to trusted local accounts, understanding that this reduces but does not eliminate risk from a low-privileged local attacker who can already run the binary. Because the assessed impact is availability-only and requires local low-privilege access, organizations not exposing ImageMagick's -script to untrusted input and not depending on policy.xml as a security boundary can treat this as low priority.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ImageMagick's -script operation executes a sequence of image-processing commands from a file or stream, and administrators often use policy.xml to limit delegates, coders, and operations when processing untrusted images. The vulnerability resides in MagickWand/script-token.c: AcquireScriptTokenInfo previously failed to mark a pre-existing FILE* stream as opened by the token_info structure, so cleanup code could close file descriptors that belonged to the calling process rather than the script operation. This is CWE-404 (Improper Resource Shutdown or Release), a resource lifecycle flaw that can be abused to bypass policy enforcement that assumes script operations are isolated. The CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* indicates all ImageMagick versions before 7.1.2-32 are affected; the patch commit ce92ae07c2ca2c20c131eaf6da6da734c1cafce0 adds an opened flag when token_info->stream is non-NULL, preventing unauthorized descriptor closure. The assessed impact is local (AV:L), low-privilege (PR:L), UI:N, and availability-only (A:L), with no confidentiality or integrity loss and no scope change (S:U).
Know when Imagemagick gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local invocation of -script with low privileges (AV:L/PR:L), no user interaction, no confidentiality/integrity impact and only low availability impact from closing file descriptors (A:L, S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Imagemagick
View allThe (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi
ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc
Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv
The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi
The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d
EUVD-2026-97579
GHSA-rfwr-4c4q-p5x7
NVD
CVE.org
EPSS
Exploit-DB