Advisory

GHSA-5wmg-j84w-4jj4

Also known as: CVE-2018-1002207, GO-2022-0799, SNYK-GOLANG-GITHUBCOMMHOLTARCHIVERCMDARCHIVER-50071

Summary

Arbitrary File Write via Archive Extraction in mholt/archiver

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-15 01:57 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/mholt/archiver

Go · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences