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-2025-29787

CVE-2025-29787: Rust zip Crate Path Traversal Vulnerability

CVE-2025-29787 is a path traversal vulnerability in the Rust zip crate that allows malicious archives to overwrite arbitrary files via symbolic links. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-29787 Overview

CVE-2025-29787 is a path traversal vulnerability in the zip crate for Rust, a popular library used for reading and writing ZIP files. The vulnerability exists in the archive extraction routine of versions 1.3.0 through 2.2.x, where symbolic links earlier in the archive are allowed to be used for later files without proper validation of the final canonicalized path. This flaw allows maliciously crafted archives to overwrite arbitrary files in the file system when extracted.

Critical Impact

Attackers can craft malicious ZIP archives that, when extracted using vulnerable versions of the zip crate, can overwrite arbitrary files on the system with arbitrary permissions. This can potentially lead to remote code execution by overwriting critical system files or application binaries.

Affected Products

  • zip crate for Rust versions 1.3.0 to 2.2.x
  • Applications using the zip crate's high-level archive extraction API
  • Rust projects that extract untrusted ZIP archives

Discovery Timeline

  • March 17, 2025 - CVE-2025-29787 published to NVD
  • March 17, 2025 - Last updated in NVD database

Technical Details for CVE-2025-29787

Vulnerability Analysis

This vulnerability (CWE-22: Path Traversal) affects the archive extraction functionality within the zip crate. The core issue lies in how the library processes symbolic links during ZIP archive extraction. When extracting files, the library fails to properly validate the canonicalized path when symbolic links are present earlier in the archive, allowing an attacker to construct a symlink chain that escapes the intended extraction directory.

The attack requires user interaction in the form of extracting a maliciously crafted archive, but once triggered, it can overwrite arbitrary files on the filesystem. The vulnerability specifically affects users who extract untrusted archive files using the high-level API methods provided by the crate.

Root Cause

The root cause is improper handling of symbolic links during archive extraction. The library did not adequately validate that paths containing symbolic links resolve to locations within the intended extraction directory. When processing a file that follows a symbolic link in the archive, the library failed to verify the final canonicalized destination path, allowing path components like .. (parent directory) to escape the extraction boundary through symlink indirection.

Attack Vector

The attack leverages symbolic links embedded within a malicious ZIP archive. An attacker constructs an archive containing:

  1. A symbolic link pointing to a parent directory or sensitive system location
  2. Subsequent files in the archive that reference the symbolic link in their path

When the vulnerable application extracts this archive, the symbolic link is created first. Then, when later files reference the symlink in their path, the library writes content through the symlink to arbitrary locations outside the intended extraction directory. This can be exploited to overwrite critical files such as SSH authorized keys, cron jobs, or application configuration files.

The patch introduces a new path module with a simplified_components function that validates path components and rejects paths containing prefix, root directory, or unresolved parent directory references:

rust
//! Path manipulation utilities

use std::{
    ffi::OsStr,
    path::{Component, Path},
};

/// Simplify a path by removing the prefix and parent directories and only return normal components
pub(crate) fn simplified_components(input: &Path) -> Option<Vec<&OsStr>> {
    let mut out = Vec::new();
    for component in input.components() {
        match component {
            Component::Prefix(_) | Component::RootDir => return None,
            Component::ParentDir => {
                if out.pop().is_none() {
                    return None;
                }
            }
            Component::Normal(_) => out.push(component.as_os_str()),
            Component::CurDir => (),
        }
    }
    Some(out)
}

Source: GitHub Commit Update

Detection Methods for CVE-2025-29787

Indicators of Compromise

  • Unexpected symbolic links created in extraction directories pointing to sensitive system paths
  • File modifications in directories outside the intended extraction location following ZIP extraction operations
  • Presence of ZIP archives containing symbolic links with suspicious path targets (e.g., ../../../etc/)
  • Unexpected changes to critical system files like /etc/passwd, ~/.ssh/authorized_keys, or application binaries

Detection Strategies

  • Audit Rust project dependencies using cargo audit to identify vulnerable versions of the zip crate
  • Implement file integrity monitoring (FIM) on critical system files and directories
  • Monitor for suspicious ZIP extraction operations that result in writes outside expected directories
  • Review application logs for unusual archive extraction patterns or errors related to path validation

Monitoring Recommendations

  • Enable SentinelOne's Behavioral AI to detect anomalous file system operations following archive extraction
  • Configure alerts for symbolic link creation in web-accessible directories or application extraction paths
  • Monitor cargo.lock files in CI/CD pipelines for vulnerable dependency versions
  • Implement runtime application self-protection (RASP) to detect path traversal attempts

How to Mitigate CVE-2025-29787

Immediate Actions Required

  • Upgrade the zip crate to version 2.3.0 or later immediately
  • Audit all Rust applications that process untrusted ZIP files for vulnerable dependency versions
  • Implement input validation to reject archives containing symbolic links if symlink extraction is not required
  • Review recent extraction operations for signs of compromise if vulnerable versions were deployed

Patch Information

The vulnerability has been fixed in version 2.3.0 of the zip crate. The patch introduces a new path module that properly validates and simplifies path components during extraction, rejecting paths that would escape the extraction directory. Users should update their Cargo.toml to specify the patched version:

For detailed information about the fix, refer to the GitHub Security Advisory GHSA-94vh-gphv-8pm8 and the GitHub Release Note v2.3.0.

Workarounds

  • Avoid extracting untrusted ZIP archives until the crate is upgraded
  • Implement custom path validation before calling the extraction API to reject symlinks
  • Run extraction operations in sandboxed environments with restricted filesystem access
  • Use chroot or container isolation to limit the impact of potential path traversal exploits
bash
# Configuration example
# Update the zip crate in your Cargo.toml
# Change from vulnerable version:
# zip = "2.2.0"
# To patched version:
zip = "2.3.0"

# Run cargo update to apply the dependency change
cargo update -p zip

# Verify the installed version
cargo tree -p zip

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechZip

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H/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
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Gist PoC Code

  • GitHub Commit Update

  • GitHub Release Note v2.3.0

  • GitHub Security Advisory GHSA-94vh-gphv-8pm8
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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