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 package | Versions | Reported by |
|---|---|---|
| ipfs go-ipfs | < 0.8.0-rc1 | CVE List |
| github.com/ipfs/go-ipfs (Go) | before 0.8.0 | GitHub Advisory Database, Go Vulnerability Database |
| protocol go-ipfs | up to 0.7.0 | NVD |
All scores
| GitHub_M | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 5.5medium CVSS:2.0 | AV: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.
- The only affected command is
ipfs get. - 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:
- Open an issue in go-ipfs
- Email us at security@ipfs.io
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. 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. Esto puede hacer que los archivos se sobrescriban o se escriban en directorios de salida incorrectos. El problema solo puede ocurrir cuando se realiza una obtención en un DAG afectado. Esto se corrige en la versión 0.8.0-rc1
References
| https://github.com/ipfs/go-ipfs/security/advisories/GHSA-27pv-q55r-222g | advisory, third-party-advisory, web | |
| https://github.com/ipfs/go-ipfs/commit/b7ddba7fe47dee5b1760b8ffe897908417e577b2 | fix, patch, third-party-advisory, web | |
| https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26279 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26279 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-27pv-q55r-222g changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0779 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2020-26279 changed 2026-06-17 | Public domain |