Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/sassoftware/go-rpmutils/cpio
  4. ›
  5. CVE-2020-7667

CVE-2020-7667: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

June 23, 2021 (updated January 4, 2022)

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.

References

  • github.com/advisories/GHSA-9423-6c93-gpp8
  • github.com/sassoftware/go-rpmutils/commit/a64058cf21b8aada501bba923c9aab66fb6febf0
  • nvd.nist.gov/vuln/detail/CVE-2020-7667

Code Behaviors & Features

Detect and mitigate CVE-2020-7667 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.1.0

Fixed versions

  • 0.1.0

Solution

Upgrade to version 0.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/sassoftware/go-rpmutils/cpio/CVE-2020-7667.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:56 +0000.