Skip to main content

ImageMagick CVE-2026-25965

HIGH
Path Traversal (CWE-22)
2026-02-24 security-advisories@github.com GHSA-8jvj-p28h-9gm7
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach ImageMagick via web upload/convert
  2. Delivery
    Supply path with ../ traversal
  3. Exploit
    Policy matcher sees unnormalized string, allows
  4. Execution
    OS resolves traversal, opens protected file
  5. Impact
    Sensitive file contents disclosed to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that ImageMagick process an attacker-influenced filename or path AND that a path-based security policy (policy.xml / policy-secure.xml with rules like /etc/*) be relied upon as the access-control boundary - that policy is precisely what this bug bypasses via ../ traversal. Limiting factors: the attacker must be able to get a traversal-containing path into an ImageMagick operation (typically through a web app, document pipeline, or API that passes user input to convert/magick), and there must be a sensitive file whose disclosure is valuable; deployments that do not use a path policy gain nothing new from this bug (unrestricted reads were already possible), and the impact is read-only (C:H, I:N, A:N), so no modification or denial of service results directly. Per CVSS PR:N/UI:N, no authentication or user interaction is required at the ImageMagick layer, though the surrounding application may impose its own access requirements that are not captured in the CVE data.

Impact

The CVSS 3.1 base score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N): network-reachable, low complexity, no privileges or interaction, with high confidentiality impact and no integrity or availability effect - consistent with a read-only file-disclosure primitive. However, the AV:N rating reflects that ImageMagick is commonly invoked on untrusted input through a network-facing web app; the description frames the outcome as 'local file disclosure (LFI),' meaning files local to the server are exposed, not that the attacker needs local access - these are not contradictory but should be understood together. EPSS is very low (0.04%, 13th percentile) and there is no CISA KEV listing and no public exploit identified, so this is not currently mass-exploited. The realistic risk is conditional: it only matters where a path security policy is actually configured and relied upon, and where ImageMagick processes attacker-influenced filenames or paths. For most deployments this is a meaningful defense-in-depth regression rather than an imminent emergency, but for multi-tenant image services that depend on policy.xml as a security boundary it is a genuine priority.

Exploit ScenarioDerived

A web application lets users upload or reference images that a server-side ImageMagick process converts, and the operator has applied a policy.xml denying reads of sensitive directories such as /etc/*. The attacker supplies a path or filename containing ../ traversal sequences that resolves to a protected file; the policy matcher sees only the unnormalized string and permits it, while the OS resolves the traversal and ImageMagick returns the file's contents (e.g., embedded in output or error). No public exploit is identified at time of analysis, but given AV:N/AC:L the technique is straightforward to weaponize against any deployment that processes attacker-controlled paths.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 30, 2026

Local file disclosure in ImageMagick before 7.1.2-15 and 6.9.13-40 lets attackers bypass the path security policy (policy-secure.xml) using directory traversal, reading files a rule such as /etc/* was meant to block. Because the policy matcher evaluates the raw, unnormalized filename string before the OS resolves it, a traversal sequence slips past the deny rule while the kernel still opens the real sensitive file. No public exploit is identified at time of analysis and EPSS is very low (0.04%), but the bug undermines a control specifically deployed to harden image-processing pipelines that handle untrusted input.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 05:24 cvss changed CVSS 7.5

Local file disclosure in ImageMagick before 7.1.2-15 and 6.9.13-40 allows attackers to read sensitive files that a security policy was meant to protect. The flaw stems from path-traversal evaluation happening on the raw, unnormalized filename before the OS resolves it, so a policy rule like /etc/* is matched against the literal string while the kernel quietly resolves the traversal and opens the real file. No public exploit has been identified and the EPSS score is very low (0.04%, 13th percentile), but the issue is broadly remediated across major Linux distributions.

v3 Jun 30, 2026 - 05:24 cvss changed CVSS 7.5

Local file disclosure in ImageMagick before 7.1.2-15 and 6.9.13-40 lets remote attackers bypass the path security policy (policy-secure.xml) via path traversal, because policy rules like /etc/* are matched against the unnormalized filename string before the OS resolves the traversal. An attacker who can submit a crafted image or filename to a service that processes images with ImageMagick can read sensitive files (e.g., /etc/passwd) even when administrators believed a hardened policy blocked such access. EPSS is low (0.04%) and there is no public exploit identified at time of analysis, but the bypass is conceptually simple and undermines a control many deployments rely on.

v2 Jun 30, 2026 - 05:22 cvss changed CVSS 7.5

Local file disclosure in ImageMagick before 7.1.2-15 and 6.9.13-40 allows attackers to bypass the path-restriction rules in policy.xml/policy-secure.xml because the policy matcher evaluates the raw, un-normalized filename before the OS resolves it. An operator who relies on a rule like a read ban on /etc/* can be defeated with a path-traversal sequence (e.g. /etc/../etc/passwd), so the filesystem opens the sensitive file while the policy engine never sees a match. There is no public exploit identified at time of analysis and EPSS is very low (0.04%), but the issue is broadly distributed via OS vendor advisories (Red Hat, SUSE, Ubuntu).

v1 Mar 12, 2026 - 21:55 CVSS 8.6

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, ImageMagick’s path security policy is enforced on the raw filename string before the filesystem resolves it. [CVSS 8.6 HIGH]

RemediationAI

Upgrade to a fixed release: ImageMagick 7.1.2-15 or later on the 7.x branch, or 6.9.13-40 or later on the 6.x branch, which enforce policy checks against the resolved path so traversal can no longer slip past path rules (per GHSA-8jvj-p28h-9gm7). On managed distributions, apply the corresponding vendor packages - Red Hat RHSA-2026:5573, Ubuntu USN-8263-1, or the SUSE SUSE-SU-2026:0851/0852/0853 updates - rather than building from source where possible. The upstream advisory also notes the read-prevention fix should be paired with an explicit write-prevention policy rule, which will ship in ImageMagick's hardened default policies; administrators maintaining custom policy.xml files should add the recommended path write restriction so the same traversal cannot be abused for writes. As compensating controls until patching, run ImageMagick as a low-privilege user confined with a strict per-process filesystem sandbox (e.g., AppArmor/SELinux confinement, a chroot, or containerization that simply does not expose /etc, key material, or app secrets to the worker), and disable or restrict coders and delegates you do not need via policy <policy domain="coder" rights="none" .../>; note that aggressive coder restrictions can break legitimate format support, so test conversion workflows after tightening.

Affected Packages

nuget magick.net-q16-anycpu fix: 14.10.3
nuget magick.net-q16-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-anycpu fix: 14.10.3
nuget magick.net-q16-hdri-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x86 fix: 14.10.3
nuget magick.net-q16-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-openmp-x64 fix: 14.10.3
nuget magick.net-q16-openmp-x86 fix: 14.10.3
nuget magick.net-q16-x64 fix: 14.10.3
nuget magick.net-q16-x86 fix: 14.10.3
nuget magick.net-q8-anycpu fix: 14.10.3
nuget magick.net-q8-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-x64 fix: 14.10.3
nuget magick.net-q8-x64 fix: 14.10.3
nuget magick.net-q8-x86 fix: 14.10.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 19 packages in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ImageMagick is a ubiquitous image-processing library and CLI (convert/magick/mogrify) embedded in countless web applications, document pipelines, and server-side upload handlers. Administrators harden it via a security policy file (policy.xml / policy-secure.xml) that can restrict which paths and coders ImageMagick may touch. This flaw is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): the policy enforcement layer performs string matching on the attacker-supplied path before canonicalization, so a payload like /some/allowed/../../etc/passwd does not textually match a /etc/* deny rule, yet the operating system normalizes the .. segments and opens the protected file. The affected CPE is cpe:2.3:a:imagemagick:imagemagick across all versions prior to the fixed releases. The root cause is an ordering bug - policy check precedes filesystem resolution - rather than a parsing or memory-safety defect.

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Network-reachable via apps processing untrusted paths, no auth or interaction, read-only file disclosure so C:H with I:N/A:N; scope unchanged as no other component is compromised.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Red Hat 8.6 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 05:25 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:24 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:24 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:22 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.6 (HIGH) 7.5 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Feb 24, 2026 - 02:16 nvd
HIGH 8.6

DescriptionNVD

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, ImageMagick’s path security policy is enforced on the raw filename string before the filesystem resolves it. As a result, a policy rule such as /etc/* can be bypassed by a path traversal. The OS resolves the traversal and opens the sensitive file, but the policy matcher only sees the unnormalized path and therefore allows the read. This enables local file disclosure (LFI) even when policy-secure.xml is applied. Actions to prevent reading from files have been taken in versions .7.1.2-15 and 6.9.13-40 But it make sure writing is also not possible the following should be added to one's policy. This will also be included in ImageMagick's more secure policies by default.

Executive ViewAI

Why It Matters

ImageMagick versions before 7.1.2-15 and 6.9.13-40 enable attackers to bypass file-access restrictions and read restricted system files; no public exploit identified at time of analysis. Organizations using ImageMagick for untrusted image processing face exposure of sensitive configuration and credential files despite deployed security policies. This vulnerability undermines a control layer designed to harden image-processing pipelines.

Business Impact: High
Compensating Controls

Apply vendor patch: ImageMagick 7.1.2-15 and 6.9.13-40.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Ubiquitous
image-processing library embedded in countless web apps and Linux distros
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)NVD

cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

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

CVE-2016-3715 MEDIUM POC
5.5 May 05

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

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

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

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

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

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

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

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

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

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

SUSE

Severity: High
Product Status
Container suse/sl-micro/6.1/baremetal-os-container:2.2.1-7.41 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.62 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.65 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.54 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy