CVE-2020-26279: Path traversal in github.com/ipfs/go-ipfs
7.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.82017%
CWE
Published
6/23/2021
Updated
1/9/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/ipfs/go-ipfs | go | < 0.8.0 | 0.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was patched in whyrusleeping/tar-utils@20a6137
by adding explicit checks for '..' path components in the outputPath
function. The commit diff shows the vulnerable version lacked these checks, allowing malicious tar entries to write files outside the target directory. Since the CVE specifically mentions path traversal during DAG retrieval via 'ipfs get', and the patch was applied to this utility function used by go-ipfs
for tar extraction, this is the clear vulnerable function.