CVE-2020-26279 Path traversal

High 7.7 Published Updated

Attackers can overwrite files or write to incorrect directories via path traversal in go-ipfs when retrieving malicious DAGs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-26279?

CVE-2020-26279 is a high-severity path traversal vulnerability in go-ipfs, published on 24 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-22

Which versions are affected by CVE-2020-26279?

3 open source packages ship an affected version, including github.com/ipfs/go-ipfs. It affects 1 product.

PackageAffectedFixed in
github.com/ipfs/go-ipfs GoAll versions0.8.0
github.com/ipfs/go-ipfs GoAll versions0.8.0
github.com/ipfs/go-ipfs GoAll versions0.8.0

Products include Protocol Go-Ipfs.

How do I fix CVE-2020-26279?

Upgrade github.com/ipfs/go-ipfs to 0.8.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-26279 being exploited?

There is no known exploitation of CVE-2020-26279 in the wild and no public exploit code.

Sources

Also known as GHSA-27pv-q55r-222g, GO-2022-0779.

Is CVE-2020-26279 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free