Security mailing lists by PureSourceCode

CVE-2026-61725

MEDIUM 6.1CVSS 3.1

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)

sevenz-rust2 is a Rust-native 7z compressor and decompressor. 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.

Published
30 Oct 2026
Last modified
1 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-22CWE-23
Also known as
GHSA-qh76-45cr-8xrcRUSTSEC-2026-0624
Sources
NVDJSONOSV GHSA-qh76-45cr-8xrcJSONOSV RUSTSEC-2026-0624JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
OSV RustSec CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io sevenz-rust2 < 0.21.1 0.21.1
OSV crates.io sevenz-rust2 >= 0.0.0-0, < 0.21.1 0.21.1

References

History

  • 1 Dec 2026 10:02 UTC · OSV: updated (other details)
  • 1 Dec 2026 10:02 UTC · OSV: first stored (published 30 Jun 2026)
  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 30 Oct 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.