Vulnerability · Published Mar 24, 2021 · Assigned by GitHub_M

CVE-2020-26279Path traversal

High 7.7

In plain English

A high-severity path traversal in go-ipfs from ipfs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)1.7%top 22.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

go-ipfs is an open-source golang implementation of IPFS which is a global, versioned, peer-to-peer filesystem. In go-ipfs before version 0.8.0-rc1, it is possible for path traversal to occur with DAGs containing relative paths during retrieval. This can cause files to be overwritten, or written to incorrect output directories. The issue can only occur when a get is done on an affected DAG. This is fixed in version 0.8.0-rc1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20kubo0.8.0-r0ALPINE-CVE-2020-26279
Alpine:v3.21kubo0.8.0-r0ALPINE-CVE-2020-26279
Alpine:v3.22kubo0.8.0-r0ALPINE-CVE-2020-26279
Alpine:v3.23kubo0.8.0-r0ALPINE-CVE-2020-26279
Alpine:v3.24kubo0.8.0-r0ALPINE-CVE-2020-26279
Gogithub.com/ipfs/go-ipfs0.8.0GHSA-27pv-q55r-222g
Gogithub.com/ipfs/go-ipfs0.8.0GO-2022-0779

Affected products (as reported)

VendorProductVersions
ipfs go-ipfs < 0.8.0-rc1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

References