Advisory record · GHSA-378j-3jfj-8r9f

go-ipld-prime: DAG-CBOR decoder unbounded memory allocation from CBOR headers

CVSS 6.2 MediumEPSS 0.0016 · 5th percentile

Published by the GitHub Advisory Database at 6 Apr 2026, 23:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/ipld/go-ipld-primeGo<0.22.00.22.0
Identifiers
GHSA-378j-3jfj-8r9f · CVE-2026-35480 · GO-2026-5073
Weakness (CWE)
CWE-770
Published
6 Apr 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of github.com/ipld/go-ipld-prime before 0.22.0 are affected. The DAG-CBOR decoder trusts collection sizes declared in CBOR headers as preallocation hints without capping them or charging them against its allocation budget, so a small crafted payload, including deeply nested structures, can trigger very large memory allocation. Upgrade to version 0.22.0, which caps the preallocation hint at 1024 entries and accounts for declared sizes in the budget.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.2 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0016, the 5th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:14 UTC First seen by agentprime
  2. 31 Oct 2026, 14:14 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.