CVE-2020-7665 json
Arbitrary File Write via Archive Extraction (Zip Slip)
published 6y ago modified 4mo ago also GHSA-58pf-pcwv-qg85 , GO-2022-0793 , EUVD-2021-0952
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
This affects all versions of package github.com/u-root/u-root/pkg/uzip. It is vulnerable to both leading and non-leading relative path traversal attacks in zip file extraction.
Patch / fix
- go github.com/u-root/u-root 0.9.0
- github.com/u-root/u-root#1817 pull request
- github.com/u-root/u-root#2344 pull request
Is CVE-2020-7665 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.83% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUROOTUROOTPKGUZIP-570441 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 |
| 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/u-root/u-root | <0.9.0 |
0.9.0 |
Affected products
- n/a github.com/u-root/u-root/pkg/uzip
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/u-root/u-root/pull/1817
web, patch, third-party-advisory
-
github.com
/u-root/u-root/pull/2344
web, patch
-
snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMUROOTUROOTPKGUZIP-570441
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7665
advisory
-
github.com
/advisories/GHSA-58pf-pcwv-qg85
advisory
Sources
- CVE List CVE-2020-7665
- GitHub Advisory GHSA-58pf-pcwv-qg85
- NVD CVE-2020-7665
- OSV GO-2022-0793
Fencer Intel 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.