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
    • 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-27670

CVE-2026-27670: Openclaw Race Condition Vulnerability

CVE-2026-27670 is a race condition flaw in Openclaw ZIP extraction that enables local attackers to write files outside intended directories. This article covers technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-27670 Overview

OpenClaw versions prior to 2026.3.2 contain a Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability in the ZIP extraction functionality. This vulnerability allows local attackers to write files outside the intended destination directory by exploiting a race between path validation and file write operations. Attackers can abuse parent directory symlink rebinding to redirect writes outside the extraction root, potentially leading to arbitrary file overwrites on the system.

Critical Impact

Local attackers can exploit this race condition to write arbitrary files outside the intended extraction directory, potentially overwriting critical system or application files.

Affected Products

  • OpenClaw versions prior to 2026.3.2 (Node.js package)
  • OpenClaw ZIP extraction functionality in src/infra/fs-safe.ts

Discovery Timeline

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

Technical Details for CVE-2026-27670

Vulnerability Analysis

This vulnerability is classified as CWE-367 (Time-of-Check Time-of-Use Race Condition). The flaw exists in OpenClaw's ZIP extraction logic where there is an exploitable timing window between when a file path is validated and when the actual file write operation occurs.

The vulnerable code flow performs path validation to ensure extracted files remain within the designated extraction root directory. However, an attacker with local access can manipulate symbolic links in the parent directory chain during this brief window between validation and write. By rebinding symlinks at precisely the right moment, the attacker can redirect the file write operation to an arbitrary location outside the extraction root.

This race condition requires local access and precise timing, but successful exploitation allows modification of files outside the intended extraction boundary, potentially leading to privilege escalation or system compromise.

Root Cause

The root cause lies in the asynchronous file handling within src/infra/fs-safe.ts. The original implementation of openWritableFileWithinRoot validated the destination path but did not adequately protect against symlink manipulation between the time of path validation (check) and the actual file write operation (use). This TOCTOU vulnerability is particularly relevant on systems where attackers can rapidly modify filesystem symlinks.

Attack Vector

This is a local attack vector requiring the attacker to have execution privileges on the same system. The attack complexity is high due to the precise timing required to win the race condition. The attacker must:

  1. Initiate or wait for a ZIP extraction operation targeting a directory they can access
  2. Monitor the extraction process timing
  3. Rapidly rebind parent directory symlinks between the path validation check and file write
  4. Successfully redirect the write operation to an arbitrary location

The security patch addresses this by implementing a more robust approach to resolve the real path of opened file handles, using /proc/self/fd/ and /dev/fd/ on Linux systems to verify the actual destination after the file handle is opened:

typescript
export type SafeWritableOpenResult = {
  handle: FileHandle;
  createdForWrite: boolean;
  openedRealPath: string;
};

export async function resolveOpenedFileRealPathForHandle(
  handle: FileHandle,
  ioPath: string,
): Promise<string> {
  try {
    return await fs.realpath(ioPath);
  } catch (err) {
    if (!isNotFoundPathError(err)) {
      throw err;
    }
  }

  const fdCandidates =
    process.platform === "linux"
      ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`]

Source: GitHub Commit Update

Detection Methods for CVE-2026-27670

Indicators of Compromise

  • Unexpected files appearing outside designated extraction directories
  • Anomalous symlink creation activity in directories where ZIP extraction occurs
  • Modified system or application files with timestamps correlating to ZIP extraction operations
  • Process monitoring showing rapid symlink manipulation concurrent with OpenClaw operations

Detection Strategies

  • Monitor for rapid symlink creation/deletion patterns that could indicate race condition exploitation attempts
  • Implement file integrity monitoring (FIM) on critical system directories to detect unauthorized file modifications
  • Audit OpenClaw extraction operations and compare extracted file paths against intended destinations
  • Use process monitoring to detect suspicious concurrent filesystem operations during ZIP extraction

Monitoring Recommendations

  • Enable enhanced filesystem auditing on extraction target directories
  • Monitor for processes performing rapid symlink operations that could indicate TOCTOU exploitation
  • Implement application-level logging to track all ZIP extraction operations with source and destination validation
  • Review audit logs for file writes outside expected extraction boundaries

How to Mitigate CVE-2026-27670

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.3.2 or later immediately
  • Audit systems for any unauthorized file modifications that may have resulted from exploitation
  • Restrict local access to systems running vulnerable OpenClaw versions
  • Consider implementing mandatory access control (MAC) policies to limit ZIP extraction destinations

Patch Information

The vulnerability has been addressed in OpenClaw version 2026.3.2. The fix implements enhanced file handle validation using platform-specific mechanisms to resolve the actual file path after opening, preventing symlink race attacks. The patch is available in commit 7dac9b05dd9d38dd3929637f26fa356fd8bdd107.

For more details, refer to the GitHub Security Advisory and the GitHub Commit Update.

Workarounds

  • Restrict local user access to systems running vulnerable OpenClaw versions
  • Run OpenClaw extraction operations in isolated environments or containers with limited filesystem access
  • Implement filesystem-level protections such as read-only mounts for sensitive directories
  • Use mandatory access control (SELinux, AppArmor) to restrict OpenClaw's write destinations
bash
# Example: Restrict extraction directories with read-only bind mounts for sensitive areas
# This limits the impact of successful exploitation
mount --bind /sensitive/path /sensitive/path
mount -o remount,ro /sensitive/path

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechOpenclaw

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:H/AT:N/PR:L/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-367
  • Technical References
  • VulnCheck Advisory
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32977: Openclaw Race Condition Vulnerability

  • CVE-2026-32988: Openclaw Race Condition Vulnerability

  • CVE-2026-40037: OpenClaw SSRF Vulnerability

  • CVE-2026-34511: OpenClaw OAuth Auth Bypass 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