The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25965

CVE-2026-25965: ImageMagick Path Traversal Vulnerability

CVE-2026-25965 is a path traversal vulnerability in ImageMagick that allows attackers to bypass security policies and access sensitive files. This article covers technical details, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-25965 Overview

CVE-2026-25965 is a path traversal vulnerability in ImageMagick, a widely-used open-source software suite for editing and manipulating digital images. The vulnerability exists in ImageMagick's path security policy enforcement mechanism, which validates filenames before the filesystem resolves them. This allows attackers to bypass security policies using path traversal sequences, enabling unauthorized access to sensitive files even when policy-secure.xml is applied.

Critical Impact

This vulnerability enables Local File Inclusion (LFI) attacks, allowing unauthorized disclosure of sensitive system files such as /etc/passwd or configuration files containing credentials, even when ImageMagick's security policies are configured.

Affected Products

  • ImageMagick versions prior to 7.1.2-15
  • ImageMagick versions prior to 6.9.13-40
  • Systems using ImageMagick for image processing with security policies enabled

Discovery Timeline

  • 2026-02-24 - CVE CVE-2026-25965 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-25965

Vulnerability Analysis

This vulnerability represents a classic Time-of-Check Time-of-Use (TOCTOU) style flaw in ImageMagick's security policy implementation. The core issue lies in the order of operations: ImageMagick's security policy engine evaluates the raw, unnormalized filename string against policy rules before the operating system's filesystem layer resolves the actual path.

When a policy rule restricts access to sensitive directories like /etc/*, an attacker can craft a path traversal payload such as /var/log/../etc/passwd. The policy matcher sees /var/log/../etc/passwd and does not match it against the /etc/* rule. However, when the operating system resolves the path, the .. sequence is normalized, resulting in access to /etc/passwd.

This vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The network attack vector with no required privileges or user interaction makes this vulnerability particularly dangerous for web applications that process user-supplied images.

Root Cause

The root cause is the mismatch between the path security policy validation stage and the actual filesystem path resolution. ImageMagick performs policy checks on the raw input string before canonicalization, while the filesystem resolves traversal sequences like .. and symbolic links after the policy check passes. This architectural flaw allows the policy check to be bypassed since it never sees the final, resolved path.

Attack Vector

An attacker can exploit this vulnerability by supplying a crafted filename containing path traversal sequences to ImageMagick operations. This can occur in scenarios where:

  1. Web applications allow user-supplied image paths or filenames
  2. ImageMagick is used in backend processing pipelines
  3. Image conversion services accept file path parameters

The attack does not require authentication and can be executed remotely through any application interface that passes user-controlled paths to ImageMagick. The attacker crafts a path that bypasses the policy matcher's pattern matching while resolving to a protected file on the filesystem. For example, requesting an image operation on /tmp/../../../etc/passwd would pass a policy blocking /etc/* but would ultimately read the /etc/passwd file.

For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-25965

Indicators of Compromise

  • Presence of path traversal sequences (../, ..%2f, ..%252f) in ImageMagick-related logs
  • Unexpected file read operations in ImageMagick process traces accessing sensitive directories
  • Web application logs showing image processing requests with embedded directory traversal patterns
  • System audit logs indicating ImageMagick processes accessing /etc/, /proc/, or other sensitive paths

Detection Strategies

  • Monitor ImageMagick process activity for file access to sensitive directories outside expected paths
  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in image processing requests
  • Enable file access auditing on sensitive system files to detect unauthorized reads by ImageMagick processes
  • Review application logs for image processing requests containing ../ or URL-encoded traversal sequences

Monitoring Recommendations

  • Configure SIEM alerts for ImageMagick processes reading files from sensitive directories like /etc/, /proc/, or /sys/
  • Implement behavioral monitoring for ImageMagick to establish baseline file access patterns and alert on deviations
  • Monitor network traffic for responses containing sensitive file contents indicative of successful LFI exploitation

How to Mitigate CVE-2026-25965

Immediate Actions Required

  • Upgrade ImageMagick to version 7.1.2-15 or later for the 7.x branch
  • Upgrade ImageMagick to version 6.9.13-40 or later for the 6.x branch
  • Review and update ImageMagick security policies to include additional write restrictions as recommended by the vendor
  • Audit applications using ImageMagick to identify potential exposure points

Patch Information

The ImageMagick project has released patched versions that address this path traversal vulnerability. The fixes are included in versions 7.1.2-15 and 6.9.13-40. Additionally, users should update their policy.xml configuration to include explicit restrictions on both read and write operations to prevent similar bypasses. Detailed patch information is available in the GitHub Security Advisory.

Workarounds

  • Implement strict input validation to canonicalize and validate all file paths before passing them to ImageMagick
  • Use chroot or container isolation to limit ImageMagick's filesystem access to specific directories
  • Apply additional policy restrictions as recommended in the security advisory to block both read and write operations on sensitive paths
  • Consider sandboxing ImageMagick processes using security frameworks such as AppArmor or SELinux
bash
# Example policy.xml addition to restrict file access
# Add the following to your ImageMagick policy.xml to block sensitive paths
# <policy domain="path" rights="none" pattern="/etc/*" />
# <policy domain="path" rights="none" pattern="/proc/*" />
# <policy domain="path" rights="none" pattern="/sys/*" />

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechImagemagick

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33536: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-33535: ImageMagick DoS Vulnerability

  • CVE-2026-32636: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-31853: ImageMagick SFW Decoder DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English