# CVE-2026-35480: go-ipld-prime's DAG-CBOR decoder unbounded memory allocation from CBOR headers

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-04-06T23:08:24.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-378j-3jfj-8r9f, GO-2026-5073
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ipld go-ipld-prime: < 0.22.0
- github.com/ipld/go-ipld-prime (Go): before 0.22.0
- protocol go-ipld-prime: before 0.22.0

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-378j-3jfj-8r9f> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35480> (advisory)
- <https://github.com/ipld/go-ipld-prime/commit/e43bf4a27055fe8d895671a731ee5041e2d983a9> (fix, web)
- <https://github.com/ipld/go-ipld-prime> (package)
- <https://github.com/ipld/go-ipld-prime/releases/tag/v0.22.0> (web)

## Sources

- CVE List: [CVE-2026-35480](https://www.cve.org/CVERecord?id=CVE-2026-35480), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-378j-3jfj-8r9f](https://github.com/advisories/GHSA-378j-3jfj-8r9f), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5073](https://pkg.go.dev/vuln/GO-2026-5073), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-35480](https://nvd.nist.gov/vuln/detail/CVE-2026-35480), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35480 · Whole record: https://cve.day/CVE-2026-35480.json · Rebuilt by cve.day 2026-11-25T22:59:18.106Z
