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.
Published: 2026-05-27
Score: 6.2 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from the DAG-CBOR and DAG-JSON decoders in go-ipld-prime recursively processing each nested map or list without imposing a depth limit. A specially crafted payload with deeply nested collections forces the decoder to recurse once per level, eventually exhausting the goroutine stack and causing the Go runtime to terminate the process with a fatal stack overflow. The result is a denial‑of‑service condition, as the affected service crashes and must be restarted.

Affected Systems

Affected products include the go-ipld-prime library provided by ipld. All releases prior to version 0.23.0 are vulnerable. Applications that import and use the DAG-CBOR or DAG-JSON decoders with user‑supplied data are susceptible. The issue is mitigated by upgrading to 0.23.0 or later.

Risk and Exploitability

The CVSS score of 6.2 reflects a moderate severity denial of service. There is no EPSS score available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is the processing of an attacker‑crafted payload that is deserialized by the library; if the library is part of a publicly exposed service, the exploit can be executed remotely. Because the problem is a lack of recursion depth limiting, an attacker can induce a stack overflow by sending sufficiently large, deeply nested inputs. No user‑local exploitation is required unless the vulnerable component is reachable.

Generated by OpenCVE AI on May 27, 2026 at 19:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade go-ipld-prime to version 0.23.0 or later.
  • If an upgrade is not yet possible, validate input payloads and enforce a maximum nesting depth before passing data to the decoders, rejecting payloads that exceed a safe threshold.
  • Monitor application logs for stack‑overflow crashes and temporarily isolate services that process untrusted data.

Generated by OpenCVE AI on May 27, 2026 at 19:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w239-58x2-q8p5 go-ipld-prime's DAG-CBOR and DAG-JSON decoders have unbounded recursion depth
History

Wed, 27 May 2026 17:45:00 +0000

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.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.
Title go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth
Weaknesses CWE-674
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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-27T16:31:38.090Z

Reserved: 2026-04-26T12:37:18.171Z

Link: CVE-2026-42328

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-27T18:16:22.653

Modified: 2026-05-27T18:16:22.653

Link: CVE-2026-42328

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T19:30:35Z

Weaknesses