Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sevenz-rust2
  4. ›
  5. CVE-2026-61725

CVE-2026-61725: sevenz-rust2: decompress builds each output path as dest.join(entry.name()) with no traversal guard, allowing a crafted .7z to write files outside the destination (Zip-Slip)

November 20, 2026

Extracting an attacker-supplied 7z archive can write files outside the destination directory. The 7z header stores each entry’s path as a UTF-16 name with nothing constraining it to a relative, in-tree path. The extractor joins that name onto the destination and writes to the result without normalizing it or checking that it stays under the destination root, so an entry named ../../etc/cron.d/x or an absolute path escapes the target.

References

  • github.com/advisories/GHSA-qh76-45cr-8xrc
  • github.com/hasenbanck/sevenz-rust2/commit/ef760b61f3535ac8b93006212aef41bfebc237eb
  • github.com/hasenbanck/sevenz-rust2/security/advisories/GHSA-qh76-45cr-8xrc
  • nvd.nist.gov/vuln/detail/CVE-2026-61725

Code Behaviors & Features

Detect and mitigate CVE-2026-61725 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.21.1

Fixed versions

  • 0.21.1

Solution

Upgrade to version 0.21.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal

Source file

cargo/sevenz-rust2/CVE-2026-61725.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 21 Nov 2026 12:15:59 +0000.