CVE-2026-35480 go-ipld-prime's DAG-CBOR decoder unbounded memory allocation from CBOR headers
MediumCVSS 6.2
EPSS 0.16%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ipld go-ipld-prime(Go) | < 0.22.0 | 0.22.0 | Fixed |
| protocol go-ipld-prime | < 0.22.0 | 0.22.0 | Fixed |
| ipld go-ipld-prime | = < 0.22.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ipld go-ipld-prime(Go) | < 0.22.0 | 0.22.0 |
| ipld go-ipld-prime | = < 0.22.0 | No fix listed |
| protocol 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com
- github.com