Skip to content
OpenAdvisories
Medium · 5.5 CVE-2018-1002207 EUVD-2022-0846GHSA-5wmg-j84w-4jj4GO-2022-0799SNYK-GOLANG-GITHUBCOMMHOLTARCHIVERCMDARCHIVER-50071

Arbitrary File Write via Archive Extraction in mholt/archiver

Published Jul 25, 2018 · Updated Sep 16, 2024 · Assigned by snyk

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'.

Affected products

VendorProductAffectedFixed
golang archiver unspecified – < e4ef56d48eb029648b0e895bb0b6a393ef0829c3 e4ef56d48eb029648b0e895bb0b6a393ef0829c3

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/mholt/archiver < 2.1.0 2.1.0 GHSA-5wmg-j84w-4jj4
Go github.com/mholt/archiver < 2.1.0+incompatible 2.1.0+incompatible GO-2022-0799

References