CVE-2025-62518
HIGHastral-tokio-tar < 0.5.6 - Archive Entry Smuggling via PAX Header Size Mismatch
Title source: llmExploitation Summary
EIP tracks 3 public exploits for CVE-2025-62518. PoCs published by edera-dev, adminlove520, AirineiAndrei.
AI-analyzed exploit summary This repository demonstrates CVE-2025-62518, a critical bug in async Rust tar libraries (tokio-tar, async-tar) where PAX extended header size overrides are not applied before calculating the next header position, causing incorrect file extraction. The PoC includes tools to generate repro cases and compare library behavior.
Description
astral-tokio-tar is a tar archive reading/writing library for async Rust. Versions of astral-tokio-tar prior to 0.5.6 contain a boundary parsing vulnerability 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. This issue has been patched in version 0.5.6. There are no workarounds.
Exploits (3)
This repository demonstrates CVE-2025-62518, a critical bug in async Rust tar libraries (tokio-tar, async-tar) where PAX extended header size overrides are not applied before calculating the next header position, causing incorrect file extraction. The PoC includes tools to generate repro cases and compare library behavior.
This repository contains a functional proof-of-concept for CVE-2025-62518, demonstrating a PAX header desynchronization vulnerability in tokio-tar and related Rust tar libraries. The exploit leverages inconsistent handling of PAX extended headers to smuggle additional archive entries, leading to arbitrary file extraction.
This PoC demonstrates CVE-2025-62518, a vulnerability in the `tokio-tar` Rust library where a mismatch in PAX and USTAR header parsing allows file smuggling. The exploit crafts a malicious tar archive that extracts an additional hidden file due to incorrect size handling.
References (5)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N