{"id":"CVE-2020-26279","aliases":["CVE-2020-26279","GHSA-27pv-q55r-222g","GO-2022-0779"],"related":[],"kind":"vulnerability","state":"published","title":"Path traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIt 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.\n\n1. The only affected command is `ipfs get`.\n2. The gateway is not affected.\n\n### Patches\nTraversal fix patched in https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227\n`tar-utils` patch applied to go-ipfs via https://github.com/ipfs/go-ipfs/commit/b7ddba7fe47dee5b1760b8ffe897908417e577b2\n\n### Workarounds\nUpgrade to go-ipfs 0.8 or later.\n\n### References\nBinaries for the patched versions of go-ipfs are available on the IPFS distributions site, https://dist.ipfs.io/go-ipfs\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [go-ipfs](https://github.com/ipfs/go-ipfs)\n* Email us at [security@ipfs.io](mailto:security@ipfs.io)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Path traversal in github.com/ipfs/go-ipfs","format":"markdown","source":"go"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-03-24T20:20:14.000Z","modified":"2026-09-10T03:49:14.888Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:P","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.8.0-rc1","status":"affected"}],"vendor":"ipfs","product":"go-ipfs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.0"}],"ecosystem":"Go","package":"github.com/ipfs/go-ipfs","purl":"pkg:golang/github.com/ipfs/go-ipfs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.0"}],"ecosystem":"Go","package":"github.com/ipfs/go-ipfs","purl":"pkg:golang/github.com/ipfs/go-ipfs","source":"go"},{"ranges":[{"status":"affected","lastAffected":"0.7.0"}],"vendor":"protocol","product":"go-ipfs","cpe":"cpe:2.3:a:protocol:go-ipfs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ipfs/go-ipfs/security/advisories/GHSA-27pv-q55r-222g","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ipfs/go-ipfs/commit/b7ddba7fe47dee5b1760b8ffe897908417e577b2","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26279","tags":["advisory"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26279","url":"https://www.cve.org/CVERecord?id=CVE-2020-26279","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:04.169Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27pv-q55r-222g","url":"https://github.com/advisories/GHSA-27pv-q55r-222g","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:14.888Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0779","url":"https://pkg.go.dev/vuln/GO-2022-0779","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:53.152Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26279","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26279","licence":"Public domain","modified":"2026-06-17T03:07:59.207Z"}],"updatedAt":"2026-11-25T22:57:57.660Z","epss":{"score":0.01699,"percentile":0.77881,"date":"2026-12-01T12:00:22.000Z"}}