Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege local access
-
DeliveryIdentify decoder intermediate write path
-
ExploitPlace initial symlink to allowed path
-
ExecutionTrigger ImageMagick video decode job
-
PersistRace to swap symlink to policy-restricted destination
-
ImpactArbitrary write lands at restricted path
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires a local account with at least low-privilege access to the target system (PR:L per CVSS 4.0). The attacker must be able to create and manipulate symlinks in a directory that ImageMagick's video decoder uses for intermediate or output file writes (AT:P - specific environmental pre-conditions must exist). The race condition window must be won by timing the symlink swap between ImageMagick's policy validation step and its subsequent write call (AC:H). The vulnerability is limited to write-only impact on policy-restricted paths; no confidentiality or availability impact is possible. Environments where ImageMagick runs as a dedicated isolated service account with no writable directories shared with unprivileged users are not exploitable. |
| Impact | The CVSS 4.0 score of 2.0 is well-founded and not a suppression of a more severe underlying issue. Exploitation demands local system presence (AV:L), the ability to win a precise timing race (AC:H), the presence of specific attack pre-conditions such as shared writable directories in the decoder's path (AT:P), and at least low-privilege credentials (PR:L). The outcome is constrained to a low-level integrity write (VI:L) to a policy-restricted path, with no confidentiality or availability impact. No CISA KEV listing and no public POC are present, meaning there is no confirmed or demonstrated exploitation path. Even a mid-sized municipal IT team in gniezno managing a shared image-processing pipeline need not treat this as urgent if ImageMagick runs as an isolated service account with no shared writable directories accessible to untrusted local users - that deployment posture eliminates the attack surface entirely. The primary concern is multi-tenant shared hosting or CI environments where untrusted local users can influence the decoder's working directory. |
| Exploit ScenarioDerived | A low-privilege local user on a shared Linux server identifies a temporary directory used by ImageMagick's video decoder during image conversion jobs. The attacker places a symlink pointing to an allowed path, submits a video file for processing to trigger a decoder write operation, then races to replace the symlink with one pointing to a policy-restricted target (e.g., /etc/cron.d/) within the TOCTOU window, causing the write to land at the restricted location. No public exploit code exists; successfully winning the race requires precise timing and repeated attempts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 07, 2026
ImageMagick's video decoder contains a TOCTOU race condition that allows a local low-privileged attacker to bypass the policy.xml path write restrictions by swapping a symlink between the policy validation step and the actual file write operation. Both the ImageMagick 7 branch (before 7.1.2-30) and the legacy ImageMagick 6 branch (before 6.9.13-55) are affected, covering a wide range of deployed versions. No public exploit code exists and no active exploitation has been confirmed; the CVSS 4.0 score of 2.0 accurately reflects the local-access and race-condition constraints.
RemediationAI
Vendor-released patches are available: upgrade to ImageMagick 7.1.2-30 or later on the 7.x branch, or to ImageMagick 6.9.13-55 or later on the 6.x branch, as confirmed by GHSA-9x6f-98x9-rx6g. As a compensating control pending patch deployment, run ImageMagick under a dedicated isolated service account that has no shared writable directories accessible to untrusted local users, eliminating the symlink-swap surface. Alternatively, restrict tmpdir and working-directory permissions so that low-privilege users cannot create or modify symlinks in paths the decoder accesses. Containerizing or sandboxing ImageMagick (e.g., via systemd DynamicUser, seccomp, or a container runtime) further limits the race window. These mitigations add operational overhead but directly neutralize the attack prerequisite.
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 enforces filesystem access controls through a policy.xml configuration that restricts read/write access to specific paths. The video decoder component performs a two-phase operation: it resolves and validates a symlink target against the policy at check-time, then performs the actual file write at use-time. CWE-59 (Improper Link Resolution Before File Access / Link Following) captures this class of flaw: because no atomic check-and-open primitive is used, a symlink swapped between the two phases causes the write to land at an attacker-chosen policy-restricted destination. The affected CPE is cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*, covering all versions of both the 7.x and 6.x branches prior to the fixed releases.
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:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Local access and race-condition timing required (AV:L, AC:H); low-privilege credentials needed (PR:L); impact limited to restricted-path writes with no confidentiality or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
ImageMagick before 7.1.2-30 and 6.9.13-55 contains a time-of-check-time-of-use (TOCTOU) vulnerability in the video decoder that allows attackers to bypass path policy write restrictions via symlink swaps. An attacker can replace a symlink between policy validation (check-time) and the file write operation (use-time) to write to policy-denied locations.
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
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-72382
GHSA-v7f7-cw7c-4cvq
NVD
CVE.org
EPSS
Exploit-DB