Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ipfs/go-ipfs
  4. ›
  5. GMS-2022-2938

GMS-2022-2938: DOS and excessive memory usage when passing untrusted user input to to dag import

July 6, 2022 (updated February 20, 2023)

go-ipfs nodes crash when trying to import certain malformed CAR files due to an issue in the go-car dependency. This impacts nodes running ipfs dag import on untrusted user inputs, for example, pinning services with a car ingest endpoint. This include the corresponding HTTP RPC API v0/dag/import endpoint. An attacker controlling the car file passed in can also make the node allocate arbitrary sized buffers creating memory exhaustion attacks.

References

  • github.com/advisories/GHSA-f2gr-7299-487h
  • github.com/ipfs/go-ipfs/security/advisories/GHSA-f2gr-7299-487h

Code Behaviors & Features

Detect and mitigate GMS-2022-2938 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.5.0 before 0.13.1

Fixed versions

  • v0.13.1

Solution

Upgrade to version 0.13.1 or above.

Source file

go/github.com/ipfs/go-ipfs/GMS-2022-2938.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.