home / blog

2026-11-21 · medium

CVE-2026-61725: Zip-Slip in sevenz-rust2 enables external file write

Zip-Slip vulnerability in sevenz-rust2 allows external file write CVSS 6.1

CVE-2026-61725: Zip-Slip in sevenz-rust2 enables external file write

CVE-2026-61725 is a Zip-Slip vulnerability in sevenz-rust2, a Rust-native 7z compressor and decompressor. The vulnerability allows writing or overwriting files outside the destination directory when extracting attacker-supplied 7z archives. This flaw exists in the decompression function where destination path calculation lacks normalization or verification controls.

The vulnerability severity is classified as medium with a CVSS score of 6.1. It was officially published on October 30, 2026 in the NVD. GitHub signals confirm the existence of external file write issues via paths like '../..' or absolute paths in 7z archives.

For defense, it is recommended to immediately apply the patch by updating to version 0.21.1 or later of sevenz-rust2. For applications that automatically process uploaded or otherwise untrusted archives, additional controls should be implemented to prevent the extraction of suspicious paths and verify that extracted files remain within the allowed destination directory.

At a glance

What
Zip-Slip vulnerability in sevenz-rust2 allows writing or overwriting files outside the destination directory when extracting 7z archives
Severity
Medium (CVSS 6.1)
Affected versions
Prior to version 0.21.1
Fix
Update to version 0.21.1 or later
Status
Officially published on 10/30/2026
Action
Apply patch to version 0.21.1 or later

Sources: NVD, CVE-2026-61725

← All articles