CVE-2020-26279
JSON

7.7high

Path traversal

Severity
7.7high CVSS:3.1 by GitHub_M
Exploit likelihood
1.70% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-27pv-q55r-222gGO-2022-0779

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

Product or packageVersionsReported by
ipfs go-ipfs< 0.8.0-rc1CVE List
github.com/ipfs/go-ipfs (Go)before 0.8.0GitHub Advisory Database, Go Vulnerability Database
protocol go-ipfsup to 0.7.0NVD

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

It is currently 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 ipfs get is done on an affected DAG.

  1. The only affected command is ipfs get.
  2. The gateway is not affected.
Patches

Traversal fix patched in https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227 tar-utils patch applied to go-ipfs via https://github.com/ipfs/go-ipfs/commit/b7ddba7fe47dee5b1760b8ffe897908417e577b2

Workarounds

Upgrade to go-ipfs 0.8 or later.

References

Binaries for the patched versions of go-ipfs are available on the IPFS distributions site, https://dist.ipfs.io/go-ipfs

For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

Path traversal in github.com/ipfs/go-ipfs

NVD (es)

go-ipfs es una implementación golang de código abierto de IPFS, que es un sistema de archivos global, versionado, peer-to-peer.&#xa0;En go-ipfs versiones anteriores a 0.8.0-rc1, es posible que ocurra un salto de ruta con DAG que contengan rutas relativas durante la recuperación.&#xa0;Esto puede hacer que los archivos se sobrescriban o se escriban en directorios de salida incorrectos.&#xa0;El problema solo puede ocurrir cuando se realiza una obtención en un DAG afectado.&#xa0;Esto se corrige en la versión 0.8.0-rc1

References

Sources

SourceRecordLicence
CVE ListCVE-2020-26279 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-27pv-q55r-222g changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0779 changed 2026-03-03CC-BY-4.0
NVDCVE-2020-26279 changed 2026-06-17Public domain