Description
In all versions of the package github.com/unknwon/cae/zip, 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | github.com/unknwon/cae/zip | < unspecified | unspecified |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | golang-github-unknwon-cae | No fix yet | — |
| Ubuntu 18.04 LTS | golang-github-unknwon-cae | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/unknwon/cae | < 1.0.1 | 1.0.1 | GHSA-vpx7-vm66-qx8r |