RUSTSEC-2026-0427: `sn-releases`: `extract_release_archive` writes archive entries without a path-traversal check (zip-slip)

Published Oct 29, 2026
·
Updated

SafeReleaseRepoActions::extractreleasearchive 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 (extractreleasearchive, zip branch):

rust let mut file = archive.byindex(i)?; let outpath = destdirpath.join(file.name()); // file.name() is the raw entry name if file.name().endswith('/') { std::fs::createdirall(&outpath)?; // no .. check } else { let mut outfile = std::fs::File::create(&outpath)?; // 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.

Affected Software

1 affected component
rust/sn-releases>=0.0.0-0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In `SafeReleaseRepoActions::extract_release_archive`'s zip branch, validate each archive entry path before writing: reject raw names containing path traversal such as `..` or absolute paths, and only create/write the entry if the resolved output path remains within `dest_dir_path`.

Event History

Oct 29, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203