GitHub Advisory Database
GHSA-qcf3-9vmh-xw4r
Improper Limitation of a Pathname to a Restricted Directory in zt-zip
Details
zt-zip before 1.13 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.zeroturnaround:zt-zip | All versions before 1.13 (fixed in 1.13) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1002201
- https://github.com/zeroturnaround/zt-zip/commit/759b72f33bc8f4d69f84f09fcb7f010ad45d6fff
- https://github.com/snyk/zip-slip-vulnerability
- https://github.com/zeroturnaround/zt-zip/blob/zt-zip-1.13/Changelog.txt
- https://snyk.io/research/zip-slip-vulnerability
- https://snyk.io/vuln/SNYK-JAVA-ORGZEROTURNAROUND-31681