Advisory

GHSA-f5c5-hmw9-v8hx

Also known as: CVE-2020-36561, GO-2020-0035

Summary

Unzip vulnerable to path traversal

Details

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-12-28 00:30 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

github.com/yi-ge/unzip

Go · All systems

Affected

  • introduced 0, fixed 1.0.3-0.20200308084313-2adbaa4891b9 (semver)

Fixed versions

1.0.3-0.20200308084313-2adbaa4891b9

Fix

  • Fixed version 1.0.3-0.20200308084313-2adbaa4891b9
    go get github.com/yi-ge/[email protected]

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