mholt/archiver · Security
Arbitrary File Write via Archive Extraction in mholt/archiver
- GHSA ID
- GHSA-5wmg-j84w-4jj4
- CVE ID
- CVE-2018-1002207
- Severity
- medium
- Published
- Updated
- CVSS
- 5.5 · CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- CVSS v3
- 5.5 · CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Description
mholt/archiver golang package before e4ef56d48eb029648b0e895bb0b6a393ef0829c3 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in an archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1002207 ↗
- https://github.com/mholt/archiver/pull/65 ↗
- https://github.com/mholt/archiver/commit/e4ef56d48eb029648b0e895bb0b6a393ef0829c3 ↗
- https://github.com/snyk/zip-slip-vulnerability ↗
- https://snyk.io/research/zip-slip-vulnerability ↗
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMHOLTARCHIVERCMDARCHIVER-50071 ↗
- https://github.com/advisories/GHSA-5wmg-j84w-4jj4 ↗