Read the docs
TI-2026-83431 Aliases CVE-2026-61725

Path traversal in sevenz-rust2 lets archives overwrite files outside the target

Priority MEDIUM 60CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

sevenz-rust2 before 0.21.1 is a Rust-native 7z decompressor. Extracting an attacker-supplied 7z archive does not normalize entry names or check that the destination stays inside the extraction directory, so parent-directory components and absolute paths can write or overwrite files outside it (CWE-22). An attacker who supplies the archive can overwrite writable configuration, startup, cron, or build files, which can lead to code execution or persistence, and applications that unpack untrusted uploads are exposed. The flaw is in the default extraction path used by the decompress functions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-05

Description from the CNA

sevenz-rust2 is a Rust-native 7z compressor and `decompress`or. Prior to 0.21.1, extracting an attacker-supplied 7z archive can write or overwrite files outside the destination directory. In `src/util/decompress.rs`, `decompress_impl` computes each destination with `dest.join(entry.name())` without normalizing the archive's UTF-16 entry name or verifying containment, and `default_entry_extract_fn` writes to it with `File::create`. Parent-directory components escape the extraction root, and an absolute entry path makes the join discard the destination entirely. The convenience entry points `decompress`, `decompress_file`, `decompress_with_password`, and `decompress_file_with_password` all use this default path. Overwriting writable configuration, startup, cron, or build files can lead to code execution or persistence. The archive bytes are the attacker-controlled trust boundary, including for applications that automatically unpack uploaded or otherwise untrusted archives. This issue is fixed in version 0.21.1.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00138 3rd percentileScored 2026-11-07
Fix Fixed sevenz-rust2 (hasenbanck): 0.21.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
hasenbancksevenz-rust2before 0.21.10.21.1Patch availableCNA
  • sevenz-rust2 Vendorhasenbanck Affected before 0.21.1 Fixed in 0.21.1 Patch available CNA

Remediation

Update sevenz-rust2 to version 0.21.1, which fixes the issue. The sources list no vendor advisory identifier for this fix.

Written with Claude Haiku 5.5 from the sources below · 2026-11-05

  • Fix · CNA sevenz-rust2 (hasenbanck) Fixed in 0.21.1

Timeline

  1. 2026-10-30 Threatist record created from CVE-2026-61725
  2. 2026-11-01 Priority changed: MEDIUM → LOW
  3. 2026-11-02 CISA SSVC decision points changed
  4. 2026-11-02 Priority changed: LOW → MEDIUM

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences