CVE-2026-35480
MEDIUM 6.2CVSS 3.1go-ipld-prime: DAG-CBOR decoder unbounded memory allocation from CBOR headers
go-ipld-prime is an implementation of the InterPlanetary Linked Data (IPLD) spec interfaces, a batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for basic operations on IPLD objects. Prior to 0.22.0, the DAG-CBOR decoder uses collection sizes declared in CBOR headers as Go preallocation hints for maps and lists. The decoder does not cap these size hints or account for their cost in its allocation budget, allowing small payloads to cause excessive memory allocation. This vulnerability is fixed in 0.22.0.
- Published
- 7 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-770
- Also known as
- GHSA-378j-3jfj-8r9fGO-2026-5073
- Sources
- NVDJSONOSV GHSA-378j-3jfj-8r9fJSONOSV GO-2026-5073JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | protocol | go-ipld-primecpe:2.3:a:protocol:go-ipld-prime:*:*:*:*:*:go:*:* |
< 0.22.0 | 0.22.0 |
| OSV | Go | github.com/ipld/go-ipld-prime | < 0.22.0 | 0.22.0 |
References
- https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-378j-3jfj-8r9f · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-35480 · ADVISORY
- https://github.com/ipld/go-ipld-prime/commit/e43bf4a27055fe8d895671a731ee5041e2d983a9 · WEB, FIX
- https://github.com/ipld/go-ipld-prime · PACKAGE
- https://github.com/ipld/go-ipld-prime/releases/tag/v0.22.0 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Apr 2026)