RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0624

Extraction could write files outside the destination directory

Reported
Issued
Package
sevenz-rust2 (crates.io)
Type
Vulnerability
Aliases
References
CVSS Score
6.1 MEDIUM
CVSS Details
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality Impact
None
Integrity Impact
High
Availability Impact
Low
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Patched
  • >=0.21.1

Description

Applications that extracted untrusted 7z archives with the built-in extraction functions could create or overwrite files outside the directory selected by the caller. Version 0.21.1 adds validation of archive entry paths during extraction.

Advisory available under CC-BY-4.0 license. Source: https://github.com/hasenbanck/sevenz-rust2/commit/ef760b61f3535ac8b93006212aef41bfebc237eb