- Reported
-
- Issued
-
- Package
-
uncbv
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#zip-slip
#path-traversal
#directory-traversal
#arbitrary-file-write
#cbv
- References
-
- CVSS Score
- 7.1
HIGH
- CVSS Details
-
- Attack Vector
- Local
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- Required
- Scope
- Unchanged
- Confidentiality Impact
- None
- Integrity Impact
- High
- Availability Impact
- High
- CVSS Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- Patched
-
Description
Summary
uncbv extract writes each archive entry to output_dir.join(entry_filename) using the filename stored in the archive with no check for .. components or absolute paths. A malicious .cbv / .cbz archive whose entry name contains ../ (or an absolute path) can therefore cause files to be written outside the output directory chosen by the user. This is a "zip-slip" / directory-traversal arbitrary file write (CWE-22).
Advisory available under CC0-1.0
license.