{"answers":{"affected":"3 open source packages ship an affected version, including tar. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33056 in the wild and no public exploit code.","fix":"Upgrade tar to 0.4.45 or later.","what":"CVE-2026-33056 is a medium-severity path traversal vulnerability in alexcrichton tar-rs, published on 20 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-33056 and fix it if it is affected.\n\nWhat it is: CVE-2026-33056 is a medium-severity path traversal vulnerability in alexcrichton tar-rs, published on 20 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-33056 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tar (crates.io): affected all versions; fixed in 0.4.45\n- tar (crates.io): affected all versions; fixed in 0.4.45\n- tar (crates.io): affected from 0.0.0-0; fixed in 0.4.45\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33056/ (Markdown: https://insights.sbomify.com/CVE-2026-33056/index.md)","id":"CVE-2026-33056","markdown":"https://insights.sbomify.com/CVE-2026-33056/index.md","name":"CVE-2026-33056","record":{"aliases":["ALPINE-CVE-2026-33056","AZL-80315","AZL-80499","AZL-80502","AZL-80511","AZL-80523","AZL-83037","BELL-CVE-2026-33056","CLEANSTART-2026-NS62471","CLSA-2026-1788535576","DEBIAN-CVE-2026-33056","GHSA-j4xf-2g29-59ph","MINI-29c3-fwcc-r725","MINI-2m9x-v7ph-92pc","MINI-7xgm-gvhg-26h5","MINI-mq5v-gqq6-mc6h","RUSTSEC-2026-0067","UBUNTU-CVE-2026-33056","USN-8138-1","USN-8138-2","USN-8139-1","USN-8168-1","USN-8168-2"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust tar library","requires_auth":"none","summary":"Attackers can modify permissions of arbitrary directories outside the extraction root by exploiting symlink handling in tar-rs, potentially leading to privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tar","vendor":"tar_project"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"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"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"tar-rs: unpack_in can chmod arbitrary directories by following symlinks","id":"CVE-2026-33056","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Mesop Affected by Unauthenticated Remote Code Execution via Test Suite Route /exec-py","id":"CVE-2026-33057"},"packages":[{"ecosystem":"crates.io","fixed":["0.4.45"],"introduced":["0"],"last_affected":[],"package":"tar","purl":null,"source":"GHSA-j4xf-2g29-59ph"},{"ecosystem":"crates.io","fixed":["0.4.45"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:cargo/tar","source":"GHSA-j4xf-2g29-59ph"},{"ecosystem":"crates.io","fixed":["0.4.45"],"introduced":["0.0.0-0"],"last_affected":[],"package":"tar","purl":"pkg:cargo/tar","source":"RUSTSEC-2026-0067"}],"prev":{"headline":"tar-rs incorrectly ignores PAX size headers if header size is nonzero","id":"CVE-2026-33055"},"products":["tar-rs"],"published":"2026-03-20","related":[{"cvss_score":7.5,"headline":"Links in archive can create arbitrary directories","id":"CVE-2021-38511","kev_date_added":null,"published":"2021-08-10"},{"cvss_score":7.5,"headline":"Arbitrary file overwrite in tar-rs","id":"CVE-2018-20990","kev_date_added":null,"published":"2019-08-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-20","vendors":["alexcrichton"]},"summary":"Attackers can modify permissions of arbitrary directories outside the extraction root by exploiting symlink handling in tar-rs, potentially leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-33056/"}