Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ipld/go-codec-dagpb
  4. ›
  5. CVE-2022-2584

CVE-2022-2584: ipld/go-codec-dagpb panics when processing certain blocks

April 8, 2022 (updated January 23, 2026)

Decoding certain blocks using the go-ipld-prime version of the dag-pb codec (go-codec-dagpb) can cause a panic. The panic comes from an assumption that the reported link length is accurate, but if the block ends before that reported length then it’s a buffer overread.

References

  • github.com/advisories/GHSA-g3vv-g2j5-45f2
  • github.com/ipld/go-codec-dagpb/commit/a17ace35cc760a2698645c09868f9050fa219f57
  • github.com/ipld/go-codec-dagpb/security/advisories/GHSA-g3vv-g2j5-45f2
  • nvd.nist.gov/vuln/detail/CVE-2022-2584
  • pkg.go.dev/vuln/GO-2022-0422

Code Behaviors & Features

Detect and mitigate CVE-2022-2584 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.3.1

Fixed versions

  • 1.3.1

Solution

Upgrade to version 1.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

go/github.com/ipld/go-codec-dagpb/CVE-2022-2584.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:18 +0000.