Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-61725— sevenz-rust2: unchecked 7z entry paths permit traversal and absolute-path file overwrites

Quick assessment

Affected
hasenbanck sevenz-rust2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

sevenz-rust2 是一款原生用 Rust 编写的 7z 压缩与解压工具。在 0.21.1 版本之前,解压由攻击者提供的 7z 归档文件时,可能导致文件被写入或覆盖到目标目录之外。在 中, 函数通过 计算每个目标路径,但未对归档中 UTF-16 编码的条目名称进行规范化,也未验证其是否包含在目标目录内;随后 使用 向该路径写入文件。若条目名称包含父目录组件(如 ),则会逃逸出解压根目录;若条目使用绝对路径,则 操作会完全忽略指定的目标目录。便捷入口函数 、 、 和 均使用此默认路径处理逻辑。攻击者通过覆盖可写

CVSS 6.1 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-61725

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
sevenz-rust2: unchecked 7z entry paths permit traversal and absolute-path file overwrites
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
hasenbanck sevenz-rust2 < 0.21.1 -

II. Public POCs for CVE-2026-61725

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-61725

请登录查看更多情报信息。

Other References for CVE-2026-61725 (2)

IV. Related Vulnerabilities