RUSTSEC-2026-0427 — Vulnerability in sn-releases — Advisory Details
`sn-releases`: `extract_release_archive` writes archive entries without a path-traversal check (zip-slip)
Does your project use an affected sn-releases version?
Paste your Cargo.lock to check it for RUSTSEC-2026-0427 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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).
In src/lib.rs (extract_release_archive, zip branch):
let mut file = archive.by_index(i)?;
let out_path = dest_dir_path.join(file.name()); // file.name() is the raw entry name
if file.name().ends_with('/') {
std::fs::create_dir_all(&out_path)?; // no `..` check
} else {
let mut outfile = std::fs::File::create(&out_path)?; // writes outside dest
std::io::copy(&mut file, &mut outfile)?;
}
The crate is unmaintained (latest release 0.3.1, 2024-10-22) and no fixed version is available.
Advisory Timeline
- First published October 29, 2026 (28 days ago).
- Last revised October 30, 2026 — 1 day after initial publication.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| sn-releases crates.io · Affected: All versions | Range-based data available |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is RUSTSEC-2026-0427?
- `sn-releases`: `extract_release_archive` writes archive entries without a path-traversal check (zip-slip). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by RUSTSEC-2026-0427?
- RUSTSEC-2026-0427 affects sn-releases. Use GeekWala's free vulnerability scanner to check your dependencies against RUSTSEC-2026-0427 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution