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

CVE-2025-69874: nanotar Path Traversal Vulnerability

CVE-2025-69874 is a path traversal vulnerability in nanotar through version 0.2.0 that lets attackers write files outside extraction directories. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2025-69874 Overview

CVE-2025-69874 is a path traversal vulnerability affecting nanotar through version 0.2.0. The vulnerability exists in the parseTar() and parseTarGzip() functions, which fail to properly validate file paths within tar archives. This allows remote attackers to write arbitrary files outside the intended extraction directory by crafting malicious tar archives containing path traversal sequences such as ../.

Critical Impact

Attackers can exploit this vulnerability to achieve arbitrary file write, potentially overwriting critical system files, configuration files, or injecting malicious code into application directories. This can lead to remote code execution, data corruption, or complete system compromise.

Affected Products

  • nanotar versions 0.2.0 and earlier
  • Applications using nanotar parseTar() function
  • Applications using nanotar parseTarGzip() function

Discovery Timeline

  • 2026-02-11 - CVE CVE-2025-69874 published to NVD
  • 2026-02-12 - Last updated in NVD database

Technical Details for CVE-2025-69874

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal or directory traversal. The nanotar library, a lightweight JavaScript/TypeScript tar archive parsing library available via npm, fails to sanitize file paths extracted from tar archive headers before writing files to disk.

When processing a tar archive, the library reads the filename field from each tar entry header and uses it directly to construct the output file path. An attacker can craft a malicious tar archive where entry filenames contain directory traversal sequences (e.g., ../../etc/cron.d/malicious or ../../../.bashrc). When the vulnerable parseTar() or parseTarGzip() functions process such an archive, they write files to locations outside the intended extraction directory.

The network-based attack vector enables exploitation through any application that accepts tar archives from remote sources, such as file upload features, package managers, or CI/CD pipelines that process user-supplied archives.

Root Cause

The root cause is insufficient input validation in the tar parsing functions. The parseTar() and parseTarGzip() functions do not validate or sanitize the filename field extracted from tar entry headers before using it to determine the output file path. Specifically, the code lacks checks to:

  1. Detect and reject path traversal sequences (../ or ..\)
  2. Resolve the canonical path and verify it remains within the intended extraction directory
  3. Block absolute paths that could write to arbitrary filesystem locations

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker crafts a malicious tar archive containing entries with path traversal sequences in their filenames. When a vulnerable application processes this archive using nanotar's parseTar() or parseTarGzip() functions, files are written outside the intended extraction directory.

The attack can be delivered through any mechanism that causes the target application to process an attacker-controlled tar archive. This includes file upload functionality, REST API endpoints accepting tar archives, package installation mechanisms, or automated systems that fetch and extract remote archives.

Detection Methods for CVE-2025-69874

Indicators of Compromise

  • Unexpected files appearing outside of designated extraction directories
  • Files created in sensitive system locations (e.g., /etc/, /usr/bin/, ~/.ssh/) during tar extraction operations
  • Log entries showing file writes to paths containing ../ sequences
  • Modified configuration files or scripts without authorized changes

Detection Strategies

  • Monitor file system operations during tar extraction for writes outside designated directories
  • Implement application-level logging that captures full file paths during archive extraction
  • Use file integrity monitoring (FIM) tools to detect unauthorized file modifications in sensitive directories
  • Deploy SentinelOne Singularity to detect and alert on suspicious file write patterns indicative of path traversal exploitation

Monitoring Recommendations

  • Enable verbose logging in applications that process tar archives to capture extraction paths
  • Configure alerts for any file creation events outside expected extraction directories
  • Monitor npm dependency lists for nanotar versions 0.2.0 and earlier
  • Implement network monitoring to detect unusual tar archive uploads or downloads

How to Mitigate CVE-2025-69874

Immediate Actions Required

  • Audit all applications for usage of nanotar library versions 0.2.0 and earlier
  • Implement input validation to reject tar entries containing path traversal sequences before extraction
  • Use allowlisting to restrict file extraction to specific directories only
  • Consider replacing nanotar with a library that includes path traversal protections until a patched version is available

Patch Information

At the time of publication, organizations should monitor the nanotar GitHub repository and npm package page for security updates. Review the CVE-2025-69874 disclosure for the latest remediation guidance. Until an official patch is released, implement the workarounds described below.

Workarounds

  • Implement a wrapper function that validates and sanitizes filenames before passing archives to nanotar
  • Resolve the canonical path of each extracted file and verify it remains within the intended extraction directory
  • Reject any tar entries where the filename contains ../, ..\, or begins with /
  • Run tar extraction processes in a sandboxed environment with restricted filesystem access
  • Use operating system-level controls (chroot, containers) to limit the impact of path traversal
bash
# Configuration example
# Example validation logic to implement before calling parseTar/parseTarGzip
# Ensure extracted paths remain within the target directory

# In your application code, validate each entry path:
# 1. Reject paths containing "../" or "..\"
# 2. Reject absolute paths starting with "/"
# 3. Resolve the full path and verify it starts with your extraction directory

# Example directory restriction using chroot for tar extraction
mkdir -p /var/lib/safe-extract
chroot /var/lib/safe-extract /usr/bin/node extract-script.js

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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub CVE-2025-69874 Disclosure

  • GitHub Nanotar Repository

  • NPM Nanotar Package
  • 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