CVE Explorer
CVE-2026-33056
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"tar-rs","vendor":"alexcrichton","versions":[{"status":"affected","version":"< 0.4.45"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2b18a217696e0b2fa706871b576a616f73da9e18e9f73f9f0569d742db2f4034 · sha256:e5d1bcbaa8b68b99… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:2b18a217696e0b2fa706871b576a616f73da9e18e9f73f9f0569d742db2f4034 · sha256:e5d1bcbaa8b68b99… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-61","description":"CWE-61: UNIX Symbolic Link (Symlink) Following","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:2b18a217696e0b2fa706871b576a616f73da9e18e9f73f9f0569d742db2f4034 · sha256:e5d1bcbaa8b68b99… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446","tags":["x_refsource_MISC"],"url":"https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2b18a217696e0b2fa706871b576a616f73da9e18e9f73f9f0569d742db2f4034 · sha256:e5d1bcbaa8b68b99… · /containers/cna/references/1
{"name":"https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph","tags":["x_refsource_CONFIRM"],"url":"https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2b18a217696e0b2fa706871b576a616f73da9e18e9f73f9f0569d742db2f4034 · sha256:e5d1bcbaa8b68b99… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.