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-22171

CVE-2026-22171: Openclaw Path Traversal Vulnerability

CVE-2026-22171 is a path traversal vulnerability in Openclaw that allows attackers to write arbitrary files by controlling Feishu media keys. This post covers the technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-22171 Overview

CVE-2026-22171 is a path traversal vulnerability affecting OpenClaw versions prior to 2026.2.19. The vulnerability exists in the Feishu media download flow where untrusted media keys are interpolated directly into temporary file paths in extensions/feishu/src/media.ts. An attacker who can control Feishu media key values returned to the client can use traversal segments to escape os.tmpdir() and write arbitrary files within the OpenClaw process permissions.

This path traversal flaw (CWE-22) allows remote attackers to manipulate file paths and potentially overwrite critical system files, deploy malicious payloads, or establish persistence mechanisms on affected systems.

Critical Impact

Remote attackers can write arbitrary files outside the intended temporary directory by manipulating Feishu media key values, potentially leading to code execution or system compromise.

Affected Products

  • OpenClaw versions prior to 2026.2.19
  • OpenClaw for Node.js environments
  • Systems using the Feishu media download extension

Discovery Timeline

  • 2026-03-18 - CVE-2026-22171 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-22171

Vulnerability Analysis

The vulnerability resides in the Feishu media download functionality within extensions/feishu/src/media.ts. When processing media downloads, OpenClaw constructs temporary file paths by directly interpolating user-controlled media key values without proper sanitization. This design flaw allows attackers to inject path traversal sequences (such as ../) into media keys, enabling them to write files to arbitrary locations outside the intended temporary directory.

The attack is network-accessible and requires no authentication or user interaction, making it particularly dangerous for internet-facing deployments. Successful exploitation could result in arbitrary file writes with the privileges of the OpenClaw process, potentially leading to configuration tampering, code injection, or complete system compromise.

Root Cause

The root cause is improper input validation when constructing file paths from external input. The Feishu media key values, which are received from external sources, were used directly in path construction without sanitization or validation. This violates secure coding principles that mandate treating all external input as untrusted and validating file paths to prevent directory traversal attacks.

The vulnerable code pattern likely resembled constructing paths like path.join(os.tmpdir(), mediaKey) where mediaKey could contain traversal sequences like ../../etc/cron.d/malicious.

Attack Vector

The attack is executed over the network by manipulating Feishu media key values returned to the OpenClaw client. An attacker can craft malicious media keys containing path traversal sequences such as ../ or ..\\ to escape the temporary directory boundary. When the application processes these malicious keys, it writes downloaded content to attacker-controlled locations on the filesystem.

The security patches introduced multiple layers of defense:

typescript
// Security patch - Input validation for external keys
// Source: https://github.com/openclaw/openclaw/commit/ec232a9e2dff60f0e3d7e827a7c868db5254473f

const CONTROL_CHARS_RE = /[\\u0000-\\u001f\\u007f]/;
const MAX_EXTERNAL_KEY_LENGTH = 512;

export function normalizeFeishuExternalKey(value: unknown): string | undefined {
  if (typeof value !== "string") {
    return undefined;
  }
  const normalized = value.trim();
  if (!normalized || normalized.length > MAX_EXTERNAL_KEY_LENGTH) {
    return undefined;
  }
  if (CONTROL_CHARS_RE.test(normalized)) {
    return undefined;
  }
  if (normalized.includes("/") || normalized.includes("\\") || normalized.includes("..")) {
    return undefined;
  }
  return normalized;
}

The patch implements comprehensive validation that rejects media keys containing path separators (/, \\) or traversal sequences (..), control characters, and excessively long values.

Detection Methods for CVE-2026-22171

Indicators of Compromise

  • Unexpected file creation or modification outside the OpenClaw temporary directory
  • Feishu media requests containing path traversal patterns (../, ..\\, %2e%2e) in media key parameters
  • Log entries showing file operations targeting directories outside os.tmpdir()
  • Presence of unauthorized files in system directories with timestamps matching OpenClaw activity

Detection Strategies

  • Monitor filesystem activity for the OpenClaw process, alerting on writes outside expected directories
  • Implement web application firewall rules to detect path traversal patterns in API requests
  • Analyze application logs for media download requests containing suspicious characters or sequences
  • Deploy endpoint detection rules to identify file writes to sensitive system paths from Node.js processes

Monitoring Recommendations

  • Enable verbose logging for the Feishu extension to capture all media download operations
  • Configure file integrity monitoring (FIM) on critical system directories
  • Set up alerts for OpenClaw process activity writing to paths outside the application directory
  • Review network traffic for Feishu API responses containing unusual media key values

How to Mitigate CVE-2026-22171

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.19 or later immediately
  • Review systems for signs of exploitation, particularly unexpected files in system directories
  • Audit filesystem permissions to limit the OpenClaw process's write access to only necessary directories
  • Consider temporarily disabling the Feishu extension if immediate patching is not possible

Patch Information

OpenClaw has released security patches addressing this vulnerability. The fixes implement input validation for external keys and harden temporary path handling. The following commits contain the security fixes:

  • Security patch c821099 - Harden temp media download paths
  • Security patch cdb00fe - Isolate temp download writes in mkdtemp directories
  • Security patch ec232a9 - Harden temp-path handling for inbound media

For complete details, refer to the GitHub Security Advisory GHSA-vj3g-5px3-gr46.

Workarounds

  • Run the OpenClaw process with minimal filesystem permissions, restricting write access to only necessary directories
  • Implement network-level controls to sanitize or block requests containing path traversal patterns
  • Deploy containerization or sandboxing to isolate the OpenClaw process from sensitive filesystem areas
  • Use a web application firewall (WAF) to filter malicious input before it reaches the application
bash
# Example: Restrict OpenClaw process permissions using systemd
# /etc/systemd/system/openclaw.service.d/hardening.conf
[Service]
ReadWritePaths=/var/lib/openclaw/temp
ReadOnlyPaths=/
ProtectSystem=strict
ProtectHome=true

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOpenclaw

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • VulnCheck Advisory
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35668: Openclaw Path Traversal Vulnerability

  • CVE-2026-35658: Openclaw Path Traversal Vulnerability

  • CVE-2026-3689: OpenClaw Canvas Path Traversal Vulnerability

  • CVE-2026-33581: Openclaw Path Traversal 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