CVE-2020-7667 Details
Description
In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, 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.
A path traversal vulnerability has been identified in the CPIO extraction functionality of the SAS Software Go RPM Utils package, specifically in versions prior to 0.1.0. The vulnerability arises because the extraction process does not properly sanitize file paths, allowing archived files to be extracted outside of the intended directory. This issue can lead to arbitrary file overwriting, as demonstrated by a proof-of-concept that extracts a file into a user's SSH directory, overwriting the authorized_keys file.
Users are advised to upgrade the 'github.com/sassoftware/go-rpmutils/cpio' package to version 0.1.0 or higher.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sassoftware/go-rpmutils/commit/a64058cf21b8aada501bba923c9aab66fb6febf0 | CVE | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSASSOFTWAREGORPMUTILSCPIO-570427 | CVE | ExploitThird Party Advisory |
| https://github.com/sassoftware/go-rpmutils/commit/a64058cf21b8aada501bba923c9aab66fb6febf0 | [email protected] | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSASSOFTWAREGORPMUTILSCPIO-570427 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sas go rpm utils | < 0.1.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Dec 21, 2021 | Modified Analysis | [email protected] |
| Jul 21, 2021 | CWE Remap | [email protected] |
| Jul 7, 2020 | CVE Modified | [email protected] |
| Jul 2, 2020 | Initial Analysis | [email protected] |
| Jun 24, 2020 | CVE Modified | [email protected] |