Advisory

GHSA-vpx7-vm66-qx8r

Also known as: CVE-2020-7664, GO-2021-0228

Summary

Path Traversal in github.com/unknwon/cae/zip

Details

The ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading "..". This allows an attacker to add or replace files system-wide.

Specific Go Packages Affected
github.com/unknwon/cae/zip

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-18 20:31 UTC
Modified
2026-03-13 22:11 UTC

Affected packages and fixes

github.com/unknwon/cae

Go · All systems

Affected

  • introduced 0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

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