CVE-2020-7668 json
Arbitrary File Write via Archive Extraction (Zip Slip)
published 2020-06-17 6 y ago modified 2026-06-17 4 mo ago also GHSA-88jf-7rch-32qc , GO-2020-0041 , EUVD-2021-1013
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
In all versions of the package github.com/unknwon/cae/tz, 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.
Patch / fix
Exploit prediction
1.36% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:P/RL:U/RC:C |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/unknwon/cae | <1.0.1 |
1.0.1 |
Affected products
- n/a github.com/unknwon/cae/tz
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11
web, patch
-
snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7668
advisory
-
github.com
/unknwon/cae
package
-
pkg.go.dev
/vuln/GO-2020-0041
web
-
snyk.io
/research/zip-slip-vulnerability
web
Sources
- CVE List CVE-2020-7668
- GitHub Advisory GHSA-88jf-7rch-32qc
- NVD CVE-2020-7668
- OSV GO-2020-0041
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.