CVE-2026-35480

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

Published Apr 7, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-378j-3jfj-8r9f go-ipld-prime: DAG-CBOR decoder unbounded memory allocation from CBOR headers
History
Type Values Removed Values Added
First Time appeared Protocol
Protocol go-ipld-prime
CPEs cpe:2.3:a:protocol:go-ipld-prime:*:*:*:*:*:go:*:*
Vendors & Products Protocol
Protocol go-ipld-prime
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ipld
Ipld go-ipld-prime
Vendors & Products Ipld
Ipld go-ipld-prime
Type Values Removed Values Added
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.
Title go-ipld-prime's DAG-CBOR decoder unbounded memory allocation from CBOR headers
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 9, 2026, 2:40 PM
Reserved
Apr 2, 2026, 8:49 PM
Status
Analyzed
Published
Apr 7, 2026, 3:17 PM
Modified
Oct 26, 2026, 10:10 PM