go-ipld-prime's DAG-CBOR decoder unbounded memory allocation from CBOR headers
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ipld | go-ipld-prime | before 0.22.0 | 0.22.0 | Patch available | CNA |
| — | github.com/ipld/go-ipld-prime (Go) | before 0.22.0 | 0.22.0 | Patch available | GHSA-378j-3jfj-8r9f |
- go-ipld-prime Vendoripld Affected before 0.22.0 Fixed in 0.22.0 Patch available CNA
- github.com/ipld/go-ipld-prime (Go) Vendor— Affected before 0.22.0 Fixed in 0.22.0 Patch available GHSA-378j-3jfj-8r9f
Remediation
- Fix · CNA go-ipld-prime (ipld) Fixed in 0.22.0
- Fix · GHSA-378j-3jfj-8r9f github.com/ipld/go-ipld-prime (Go) Fixed in 0.22.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-35480
- 2026-10-03 Alias added: GHSA-378j-3jfj-8r9f
References
Advisory 2
More ipld vulnerabilities
- TI-2026-30634 go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth CVSS 3.1MEDIUM 6.2
Sources
- CVE-2026-35480 · CVE Program
- CVE-2026-35480 · NVD
- FIRST EPSS
- GHSA-378j-3jfj-8r9f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences