Astral-sh tokio-tar
astral-tokio-tar Vulnerable to PAX Header Desynchronization
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.5.6
Fixed in 0.5.6
Mitigation
Upgrade tokio-tar to 0.5.6 or later.
References
- Vendor advisory github.com/astral-sh/tokio-tar/security/adviso…
- Vendor advisory github.com/astral-sh/uv/security/advisories/GH…
- Patch github.com/astral-sh/tokio-tar/commit/22b3f884…
Timeline
Days relative to CVE publicationFirst public PoC 90 days after publication; not in CISA KEV. First PoC: AirineiAndrei/Tarmageddon-CVE-2025-62518- (created 19 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| edera-dev/cve-tarmageddon | 21 Aug 2025 −61 d | 19 | PoC older repo: PoC date unknown, not used for the first PoC |
| AirineiAndrei/Tarmageddon-CVE-2025-62518- | 19 Jan 2026 +90 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /crates/{var}
- Key headers
Accept: application/json- PoC User-Agent
reverse-deps-audit (contact: security@edera.dev)- Seen in
- 1 repo: edera-dev/cve-tarmageddon
- Evidence
- edera-dev/cve-tarmageddon/disclosure/blast_radius/find_reverse_deps.py:11
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/crates/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-62518 astral-sh tokio-tar exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/crates/"; http.header; content:"Accept: application/json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-62518; classtype:web-application-attack; sid:9202753; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: astral-sh tokio-tar exploit attempt (CVE-2025-62518)
id: gg-pocmon-cve-2025-62518-9202753
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-62518. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-62518
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/crates/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.62518