CVE-2020-7667

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in go/github.com/sassoftware/go-rpmutils/cpio

Identifiers

GHSA-9423-6c93-gpp8, CVE-2020-7667

Package Slug

go/github.com/sassoftware/go-rpmutils/cpio

Vulnerability

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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.

Affected Versions

All versions before 0.1.0

Solution

Upgrade to version 0.1.0 or above.

Last Modified

2022-01-11

source