GitHub Advisoryadvisory · Go
GHSA-9423-6c93-gpp8 github.com/sassoftware/go-rpmutils Arbitrary File Write via Archive Extraction (Zip Slip)
HIGH
Official page ↗
- Aliases
- CVE-2020-7667
- Ecosystem
- Go
- Packages
- github.com/sassoftware/go-rpmutils
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2021-05-12
Affected packages
• Go github.com/sassoftware/go-rpmutils: < 0.1.0 → fixed in 0.1.0
Description
The CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading `..` which leads in file extraction outside of the current directory. Note, the fixing commit was applied to all affected versions which were re-released.
Related
Alias · CVE (1)
- CVE-2020-7667 In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7667 advisory
- https://github.com/sassoftware/go-rpmutils/commit/a64058cf21b8aada501bba923c9aab66fb6febf0 web
- https://github.com/sassoftware/go-rpmutils package
- https://pkg.go.dev/vuln/GO-2020-0042 web
- https://snyk.io/research/zip-slip-vulnerability web
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSASSOFTWAREGORPMUTILSCPIO-570427 web