CVE-2026-33056 in Tar Project Tar
tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symli...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Tar Project | Tar | < 0.4.45 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory — and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-33056 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-150868-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| Published | 2026-03-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-61: CWE-61
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-61
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in the tar-rs library for Rust versions 0.4.44 and below allows an attacker to exploit a symbolic link attack during the unpacking of a tar archive, potentially leading to directory traversal or overwriting of arbitrary files.
The vulnerability arises from the use of fs::metadata() in the unpack_dir function, which follows symbolic links. An attacker can craft a tarball containing a symlink entry followed by a directory entry with the same name, causing the library to treat the symlink as a directory and potentially overwriting files or directories outside the intended target path.
Questions
What is CVE-2026-33056?
A vulnerability in the tar-rs library for Rust versions 0.4.44 and below allows an attacker to exploit a symbolic link attack during the unpacking of a tar archive, potentially leading to directory traversal or overwriting of arbitrary files.
What is the CVSS score for CVE-2026-33056?
CVE-2026-33056 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N. EPSS: 0.5%.
Is CVE-2026-33056 actively exploited?
No confirmed active exploitation of CVE-2026-33056 as of 2026-09-25.
How do I remediate CVE-2026-33056?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-33056?
CVE-2026-33056 affects Tar Project Tar.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Tar Project","product":"Tar","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.