CVE-2026-42328 Details
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.23.0, the DAG-CBOR and DAG-JSON decoders recurse on each nested map or list without a depth limit. A payload containing deeply nested collections causes the decoder to recurse once per level, growing the goroutine stack until the Go runtime terminates the process with a fatal stack overflow (distinct from a recoverable panic). This vulnerability is fixed in 0.23.0.
A stack overflow vulnerability has been identified in go-ipld-prime versions prior to 0.23.0. The issue arises in the DAG-CBOR and DAG-JSON decoders, which process nested maps and lists without a depth limit. This flaw allows a payload with deeply nested collections to cause the decoder to recurse for each level of nesting, increasing the goroutine stack until the Go runtime terminates the process due to a fatal stack overflow. In DAG-CBOR, a payload of approximately 2 MB can create around 2 million recursion frames, exhausting the default 1 GB goroutine stack. DAG-JSON is similarly vulnerable to equivalent payloads. The vulnerability is rooted in schema-free decoding, which permits arbitrary nesting depth, and in schema-bound decoding, which only limits nesting when the schema is non-recursive and lacks 'Any'-typed fields.
The vulnerability is fixed in go-ipld-prime version 0.23.0, which introduces a configurable 'MaxDepth' option for both decoders, defaulting to 1024 nested levels. Users should upgrade to this version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 27, 2026CISA-ADP
Assessed May 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-w239-58x2-q8p5 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| go-ipld-prime | < 0.23.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 27, 2026 | New CVE Received | [email protected] |
Volerion