{"id":"RUSTSEC-2026-0427","aliases":[],"status":"published","title":"`sn-releases`: `extract_release_archive` writes archive entries without a path-traversal check (zip-slip)","description":"`SafeReleaseRepoActions::extract_release_archive` builds each output path from the **raw archive entry name** and writes to it with no traversal check, so a malicious release archive can create directories and write files **outside** the destination directory, a \"zip-slip\" / path traversal (CWE-22 / CWE-23).\n\nIn `src/lib.rs` (`extract_release_archive`, zip branch):\n\n```rust\nlet mut file = archive.by_index(i)?;\nlet out_path = dest_dir_path.join(file.name());   // file.name() is the raw entry name\nif file.name().ends_with('/') {\n    std::fs::create_dir_all(\u0026out_path)?;          // no `..` check\n} else {\n    let mut outfile = std::fs::File::create(\u0026out_path)?;   // writes outside dest\n    std::io::copy(\u0026mut file, \u0026mut outfile)?;\n}\n```\n\nThe crate is unmaintained (latest release 0.3.1, 2024-10-22) and no fixed version is available.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","from":"osv"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2026-10-29T12:00:00Z","modified":"2026-10-30T11:15:02Z","affected":[{"source":"osv","ecosystem":"crates.io","package":"sn-releases","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"references":[{"url":"https://crates.io/crates/sn-releases","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0427.html","tags":["advisory"]},{"url":"https://github.com/maidsafe/sn-releases","tags":["web"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0427","title":"`sn-releases`: `extract_release_archive` writes archive entries without a path-traversal check (zip-slip)","description":"`SafeReleaseRepoActions::extract_release_archive` builds each output path from the **raw archive entry name** and writes to it with no traversal check, so a malicious release archive can create directories and write files **outside** the destination directory, a \"zip-slip\" / path traversal (CWE-22 / CWE-23).\n\nIn `src/lib.rs` (`extract_release_archive`, zip branch):\n\n```rust\nlet mut file = archive.by_index(i)?;\nlet out_path = dest_dir_path.join(file.name());   // file.name() is the raw entry name\nif file.name().ends_with('/') {\n    std::fs::create_dir_all(\u0026out_path)?;          // no `..` check\n} else {\n    let mut outfile = std::fs::File::create(\u0026out_path)?;   // writes outside dest\n    std::io::copy(\u0026mut file, \u0026mut outfile)?;\n}\n```\n\nThe crate is unmaintained (latest release 0.3.1, 2024-10-22) and no fixed version is available.","status":"published","published":"2026-10-29T12:00:00Z","modified":"2026-10-30T11:15:02.179275249Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:40.430679Z"}]}}
