sevenz-rust2: decompress builds each output path as dest.join(entry.name()) with no traversal guard, allowing a
Affects sevenz-rust2Source GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 0.21.1 when convenient.
Data as of 21 Nov 2026, 00:32 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 0.21.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 30 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade sevenz-rust2 to 0.21.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| crates.iosevenz-rust2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fixed version (0.21.1) of sevenz-rust2 is available and should be used to mitigate this vulnerability. The patch enforces path normalization and verification that extracted paths remain within the destination directory, rejecting entries with parent directory, root directory, or prefix components. Consumers extracting untrusted archives should upgrade to version 0.21.1 or later.
Description
The sevenz-rust2 library versions prior to 0.21.1 contain a directory traversal vulnerability during extraction of 7z archives. The extractor joins each entry's path onto the destination directory without normalization or checks, allowing crafted archive entries with paths like '../../etc/cron.d/x' or absolute paths to write files outside the intended extraction directory. This can lead to arbitrary file writes, potentially overwriting critical system or application files and enabling code execution or persistence. The issue was fixed in version 0.21.1.
References
- github.com/hasenbanck/sevenz-rust2/security/advisories/GHSA-qh76-45cr-8xrc (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-61725 (opens in a new tab)
- github.com/hasenbanck/sevenz-rust2/commit/ef760b61f3535ac8b93006212aef41bfebc237eb (opens in a new tab)
- github.com/hasenbanck/sevenz-rust2 (opens in a new tab)