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

CVE-2025-62518: astral-tokio-tar Boundary Parsing Vuln

CVE-2025-62518 is a boundary parsing vulnerability in astral-tokio-tar that enables archive entry smuggling through PAX header exploitation. This article covers the technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2025-62518 Overview

CVE-2025-62518 is a boundary parsing vulnerability in astral-tokio-tar, a tar archive reading/writing library for async Rust. Versions prior to 0.5.6 contain a flaw that allows attackers to smuggle additional archive entries by exploiting inconsistent PAX/ustar header handling. When processing archives with PAX-extended headers containing size overrides, the parser incorrectly advances stream position based on ustar header size (often zero) instead of the PAX-specified size, causing it to interpret file content as legitimate tar headers.

Critical Impact

This vulnerability enables attackers to craft malicious tar archives that can smuggle hidden entries past security controls, potentially leading to arbitrary file writes or code execution when archives are extracted in trusted contexts.

Affected Products

  • astral-tokio-tar versions prior to 0.5.6
  • Applications using vulnerable versions of the tokio-tar library
  • Astral UV package manager (dependent on tokio-tar)

Discovery Timeline

  • October 21, 2025 - CVE-2025-62518 published to NVD
  • October 21, 2025 - Last updated in NVD database

Technical Details for CVE-2025-62518

Vulnerability Analysis

This vulnerability stems from a type confusion issue (CWE-843) in how astral-tokio-tar handles the interaction between PAX-extended headers and ustar headers within tar archives. The tar archive format supports multiple header types, including the traditional ustar format and the newer PAX extended format which can override standard header fields including file size.

The vulnerable code path fails to properly reconcile size information between these two header types. When a PAX-extended header specifies a size value that differs from the ustar header's size field, the parser uses the wrong value when calculating stream advancement. This creates a desynchronization between where the parser believes file content ends and where it actually ends.

Root Cause

The root cause is a type confusion vulnerability where the parser incorrectly uses the ustar header's size field (which may be zero or a placeholder value) instead of the authoritative PAX-specified size when advancing the stream position after reading file content. This architectural flaw allows attackers to embed data that will be interpreted as additional tar headers rather than as file content.

The parser's state machine fails to maintain consistency between the size metadata it uses for data consumption versus stream position tracking, creating a window where attacker-controlled content can be injected into the header parsing context.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious tar archive that contains:

  1. A PAX-extended header specifying a large file size
  2. A ustar header with a size field of zero or a small value
  3. Carefully positioned payload data that aligns with tar header boundaries
  4. Smuggled entries that appear as legitimate archive members after the parser desynchronizes

The vulnerability is exploitable over the network when applications process untrusted tar archives, such as package managers downloading dependencies or CI/CD systems extracting build artifacts. User interaction is required in the sense that the malicious archive must be processed by a vulnerable application. For detailed technical analysis and proof-of-concept information, see the Edera Tarmageddon Story and the CVE Tarmageddon Repository.

Detection Methods for CVE-2025-62518

Indicators of Compromise

  • Unexpected files appearing in extraction directories that were not visible in archive listings
  • Tar archives containing PAX headers with size values that differ significantly from corresponding ustar headers
  • Anomalous file extraction behavior where extracted content differs from archive preview
  • Log entries showing extraction of files not present in original archive manifests

Detection Strategies

  • Implement dependency scanning to identify applications using astral-tokio-tar versions prior to 0.5.6
  • Deploy file integrity monitoring on systems that extract tar archives from untrusted sources
  • Analyze tar archives for header inconsistencies between PAX and ustar size fields before extraction
  • Monitor for exploitation attempts using archive analysis tools that can detect smuggled entries

Monitoring Recommendations

  • Enable verbose logging for tar extraction operations to capture header parsing details
  • Implement post-extraction validation comparing extracted files against archive manifests
  • Deploy SentinelOne Singularity to detect anomalous file creation patterns following archive extraction
  • Audit Rust application dependencies for vulnerable tokio-tar versions using cargo audit

How to Mitigate CVE-2025-62518

Immediate Actions Required

  • Upgrade astral-tokio-tar to version 0.5.6 or later immediately
  • Audit all Rust applications for dependencies on vulnerable tokio-tar versions
  • Review any archives extracted using vulnerable versions for signs of smuggled entries
  • Consider temporarily disabling automated tar extraction from untrusted sources until patched

Patch Information

The vulnerability has been addressed in astral-tokio-tar version 0.5.6. The fix ensures that the parser consistently uses the PAX-specified size when both header types are present, maintaining proper stream synchronization. The patch is available in commit 22b3f884adb7a2adf1d3a8d03469533f5cbc8318. Organizations should update their Cargo.toml dependencies and rebuild affected applications.

For additional context, review the GitHub Security Advisory for tokio-tar and the GitHub Security Advisory for UV.

Workarounds

  • No workarounds are available according to the vendor advisory - upgrading to version 0.5.6 is the only remediation path
  • As a temporary risk reduction measure, avoid processing tar archives from untrusted sources
  • Implement archive validation using alternative tooling before processing with vulnerable applications
  • Consider sandboxing tar extraction operations to limit potential impact of smuggled entries
bash
# Update astral-tokio-tar dependency
cargo update -p astral-tokio-tar

# Verify the updated version
cargo tree -p astral-tokio-tar

# Run security audit to check for remaining vulnerabilities
cargo audit

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechAstral Tokio Tar

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-843
  • Technical References
  • Edera Tarmageddon Story

  • GitHub Commit Log

  • GitHub Security Advisory

  • GitHub Security Advisory

  • GitHub CVE Tarmageddon Repository
  • Related CVEs
  • CVE-2026-32766: astral-tokio-tar Parser 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