{"answers":{"affected":"1 open source package ship an affected version, including sevenz-rust.","exploited":"There is no known exploitation of RUSTSEC-2026-0245 in the wild and no public exploit code.","fix":"No fix has been published for RUSTSEC-2026-0245 yet. Limit exposure of the affected software until one is available.","what":"RUSTSEC-2026-0245 is a path traversal vulnerability in sevenz-rust, published on 6 Aug 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 RUSTSEC-2026-0245 and fix it if it is affected.\n\nWhat it is: RUSTSEC-2026-0245 is a path traversal vulnerability in sevenz-rust, published on 6 Aug 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 RUSTSEC-2026-0245 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sevenz-rust (crates.io): affected from 0.0.0-0; no fix listed\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/RUSTSEC-2026-0245/ (Markdown: https://insights.sbomify.com/RUSTSEC-2026-0245/index.md)","id":"RUSTSEC-2026-0245","markdown":"https://insights.sbomify.com/RUSTSEC-2026-0245/index.md","name":"RUSTSEC-2026-0245","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust 7z library","requires_auth":"none","summary":"A path traversal vulnerability in the sevenz-rust library allows attackers to write arbitrary files via malicious archives, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nAll versions of `sevenz-rust` fail to validate file paths when extracting in `decompress_impl` (the underlying function used in the exposed decompress api functions). \n\nThis oversight allows a maliciously crafted archive to extract outside the extraction directory, from both relative paths such as `../../../...` or absolute paths like `C:\\\\...` or `/etc/...`, which could lead to file disclosure or remote command execution in combination with other flaws or social engineering.\n\n## Details\n\nThe following line numbers will be referencing the latest version v0.6.1. The specific point of failure is at `de_funcs.rs::101` inside `decompress_impl`.\n``` rust\nseven.for_each_entries(|entry, reader| {\n    let dest_path = dest.join(entry.name());\n    extract_fn(entry, reader, \u0026dest_path)\n})?;\n```\nWhen the function iterates through each entry, it blindly joins the entry name with the output directory before passing the path into `extract_fn`, `default_entry_extract_fn` unless specified otherwise by user. This allows for relative path traversal from simple path concatenation and absolute path traversal due to [std::path::join](https://doc.rust-lang.org/std/path/struct.Path.html#method.join)'s edge case where if the \"[passed] path is absolute, it replaces the current path.\"\n\n`default_entry_extract_fn` also fails to validate if the entry it is given has a safe extraction path before it writes to disk at `de_funcs.rs::135`.  \n\n## Status\n\nThe project has been abandoned and the repository has been deleted, so no upstream fix is expected. Users should migrate away from the library in favor of a modern up-to-date 7z library such as `sevenz-rust2`.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"Relative/Absolute Path Traversal (CWE-23/CWE-36) in `decompress_impl` that enables an arbitrary file write.","id":"RUSTSEC-2026-0245","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":[],"introduced":["0.0.0-0"],"last_affected":[],"package":"sevenz-rust","purl":"pkg:cargo/sevenz-rust","source":"RUSTSEC-2026-0245"}],"products":null,"published":"2026-08-06","related":[],"sources":[{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A path traversal vulnerability in the sevenz-rust library allows attackers to write arbitrary files via malicious archives, potentially leading to code execution.","url":"https://insights.sbomify.com/RUSTSEC-2026-0245/"}