CVE-2026-33056

Source
https://cve.org/CVERecord?id=CVE-2026-33056
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-33056.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-33056
Aliases
Downstream
Related
Published
2026-03-20T07:11:10.448Z
Modified
2026-03-23T19:29:13.788017Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
tar-rs: unpack_in can chmod arbitrary directories by following symlinks
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33056.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-61"
    ]
}
References

Affected packages

Git / github.com/alexcrichton/tar-rs

Affected ranges

Type
GIT
Repo
https://github.com/alexcrichton/tar-rs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.4.45"
        }
    ]
}

Affected versions

0.*
0.1.0
0.1.10
0.1.11
0.1.6
0.1.7
0.1.8
0.1.9
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.2
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.3.0
0.3.1
0.3.2
0.3.3
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.14
0.4.15
0.4.16
0.4.17
0.4.18
0.4.19
0.4.2
0.4.20
0.4.21
0.4.22
0.4.23
0.4.24
0.4.25
0.4.26
0.4.27
0.4.28
0.4.29
0.4.3
0.4.30
0.4.31
0.4.32
0.4.33
0.4.34
0.4.35
0.4.36
0.4.37
0.4.38
0.4.39
0.4.4
0.4.40
0.4.41
0.4.42
0.4.43
0.4.44
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
v0.*
v0.4.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-33056.json"