Skip to content

Path traversal

Moderate
jacobheun published GHSA-27pv-q55r-222g Mar 24, 2021

Package

https://github.com/ipfs/go-ipfs, https://github.com/whyrusleeping/tar-utils (GitHub)

Affected versions

<v0.8.0-rc1

Patched versions

v0.8.0-rc1

Description

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 whyrusleeping/tar-utils@20a6137
tar-utils patch applied to go-ipfs via b7ddba7

Workarounds

Upgrade to go-ipfs 0.8 RC1 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:

Severity

Moderate

CVE ID

CVE-2020-26279

Weaknesses

No CWEs

Credits