Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-22873

CVE-2025-22873: os.Root Path Traversal Vulnerability

CVE-2025-22873 is a path traversal flaw in os.Root that allows improper access to parent directories via filenames ending in "../". This article covers the technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2025-22873 Overview

A path traversal vulnerability exists in the Go programming language's os.Root functionality that allows improper access to the parent directory. By opening a filename ending in ../, such as Root.Open("../"), an attacker can escape the intended root directory and access its parent. While this escape is limited to opening the parent directory itself and does not permit access to ancestors of the parent or files contained within it, the vulnerability still represents a breach of the intended directory isolation.

Critical Impact

Applications using Go's os.Root for directory sandboxing may be vulnerable to limited path traversal, potentially exposing the parent directory structure and contents to unauthorized access.

Affected Products

  • Go programming language (versions utilizing vulnerable os.Root implementation)
  • Applications built with affected Go versions that rely on os.Root for directory isolation

Discovery Timeline

  • 2026-02-04 - CVE CVE-2025-22873 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2025-22873

Vulnerability Analysis

This vulnerability is classified as CWE-23 (Relative Path Traversal). The flaw resides in how Go's os.Root type handles filenames that end with the path traversal sequence ../. The os.Root type is designed to provide a restricted view of the filesystem, confining file operations to a specific directory tree. However, the implementation fails to properly validate and sanitize path components when the traversal sequence appears at the end of the filename string.

The vulnerability requires local access to exploit, meaning an attacker needs some level of access to the system or application to leverage this flaw. While the scope is limited—only the immediate parent directory can be accessed, not further ancestors or files within—this still undermines the security guarantees that os.Root is meant to provide.

Root Cause

The root cause stems from improper input validation in the path handling logic of os.Root.Open(). When processing filenames, the function does not adequately handle edge cases where the path traversal sequence ../ appears as a trailing component. This allows the path resolution to escape the intended root boundary and resolve to the parent directory. The validation logic likely normalizes paths but fails to account for this specific pattern, treating the trailing ../ as a valid directory reference rather than rejecting it as an attempted escape.

Attack Vector

The attack vector is local, requiring the attacker to have the ability to influence the filename parameter passed to Root.Open() or similar functions. In a typical attack scenario:

  1. An application uses os.Root to create a sandboxed directory environment
  2. User-controlled input is used to construct file paths within this sandbox
  3. The attacker provides a path ending in ../ (e.g., `"../")
  4. The Root.Open() function processes this path and opens the parent directory instead of rejecting the traversal attempt
  5. The attacker gains read access to the parent directory's contents

The vulnerability mechanism involves crafting a path string that terminates with the ../ sequence. When Root.Open("../") is called, instead of returning an error or confining the operation to the root directory, the function successfully opens the parent directory of the designated root. For detailed technical information, refer to the Go.dev Issue Tracker Entry and the Go.dev Vulnerability Report.

Detection Methods for CVE-2025-22873

Indicators of Compromise

  • Application logs showing file access patterns with paths ending in ../
  • Unexpected directory listing operations targeting parent directories of sandboxed roots
  • Error logs indicating access attempts outside expected directory boundaries

Detection Strategies

  • Review application code for usage of os.Root.Open() with user-controlled input
  • Implement logging and monitoring for path traversal patterns in file operations
  • Audit Go application dependencies to identify vulnerable Go runtime versions
  • Use static analysis tools to detect potential path traversal vulnerabilities in Go code

Monitoring Recommendations

  • Enable verbose logging for file system operations in Go applications using os.Root
  • Monitor for unusual directory access patterns, particularly parent directory traversal attempts
  • Implement alerting for any file operations that resolve outside the intended root directory
  • Review audit logs for patterns indicating exploitation attempts

How to Mitigate CVE-2025-22873

Immediate Actions Required

  • Update to a patched version of Go that addresses this vulnerability
  • Review and audit all code paths where user input influences os.Root.Open() parameters
  • Implement additional input validation to reject paths containing or ending with ../ sequences
  • Consider implementing defense-in-depth measures such as chroot jails or containerization

Patch Information

The Go development team has addressed this vulnerability in a patch. For specific patch details, refer to the Go.dev Update Notice. The fix ensures proper handling of path traversal sequences when they appear at the end of filenames, preventing the escape from the designated root directory.

For comprehensive information about this vulnerability and the official fix, see the Golang Announcement Post and the Openwall OSS Security Discussion.

Workarounds

  • Implement application-level path validation that strips or rejects any path containing ../ sequences before passing to os.Root functions
  • Use additional sandboxing mechanisms such as containers or OS-level filesystem restrictions to limit potential impact
  • Validate and sanitize all user-provided file paths using strict allowlist patterns that explicitly define permitted characters and path structures
  • Consider using absolute path resolution and validation before any os.Root operations
bash
# Example: Input validation pattern for Go applications
# Reject any paths containing traversal sequences before using os.Root
# Ensure paths do not end with ../ or contain /../ patterns
# Apply strict path normalization and validation in application code

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechN/A

  • SeverityLOW

  • CVSS Score3.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-23
  • Technical References
  • Go.dev Update Notice

  • Go.dev Issue Tracker Entry

  • Golang Announcement Post

  • Go.dev Vulnerability Report

  • Openwall OSS Security Discussion
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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