GitHub advisory reports Zip-Slip flaw in sevenz-rust2
- sevenz-rust2
- Zip-Slip
- archive extraction
- arbitrary file writes

Versions before 0.21.1 are affected
A crafted 7z archive can write files outside the extraction folder
The GitHub Advisory Database reported a Zip-Slip vulnerability in sevenz-rust2 on Nov. 20, 2026. The flaw affects versions before 0.21.1 and allows a crafted 7z archive to write files outside the directory where it is extracted.
The vulnerability occurs because the extractor joins each archive entry’s path to the chosen destination without normalizing or validating the resulting path. Zip-Slip is a path-traversal flaw; this issue is classified as CWE-22 and CWE-23.
Successful exploitation can overwrite arbitrary files and may lead to code execution. The advisory identifies version 0.21.1 as the patched release.
Key terms explained
- Zip-Slip
Zip-Slip is a security vulnerability where an archive file contains paths that allow an extractor to write files outside of the intended target directory. This occurs when the software fails to validate or normalize file paths within an archive.
Think of it this way. Imagine a delivery person who is supposed to put a package inside your mailbox, but because the address label is manipulated, they end up leaving it on your neighbor's porch instead.
- sevenz-rust2
sevenz-rust2 is an open-source software project that provides 7z file compression and decompression capabilities implemented in the Rust programming language.




