RUSTSEC-2026-0297

Source
https://rustsec.org/advisories/RUSTSEC-2026-0297
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0297.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0297
Published
2026-09-09T12:00:00Z
Modified
2026-09-21T15:30:02Z
Summary
`unzip`: archive extraction is vulnerable to path traversal (zip-slip)
Details

Summary

Unzipper::unzip extracts each archive entry to a path built from the entry's raw, attacker-controlled name without any traversal check. A ZIP archive whose entry names contain ../ components (or an absolute path) can therefore cause files to be written outside the destination directory chosen by the caller — a "zip-slip" / directory-traversal arbitrary file write (CWE-22 / CWE-23 / CWE-36).

Affected versions

All published versions are affected. unzip has only ever released 0.1.0 (published 2017-12-23) and appears unmaintained, so no fixed version is available.

Proof of concept

A malicious archive with a single entry named ../ESCAPED.txt extracted via Unzipper::unzip writes ESCAPED.txt one level above the destination directory.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / unzip

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "unzip::Unzipper::unzip"
        ],
        "os": []
    }
}

Database specific

categories
[
    "code-execution"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0297.json"