Skip to main content

CBOR CVE-2026-35480

MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-06 https://github.com/ipld/go-ipld-prime GHSA-378j-3jfj-8r9f
6.2
CVSS 3.1 · Vendor: https://github.com/ipld/go-ipld-prime
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents moderate real-world risk despite its high-impact nature. The CVSS score of 6.2 reflects local attack vector (AV:L), low complexity (AC:L), and no privilege requirement (PR:N), but the actual network attack surface depends on deployment context. Applications that expose CBOR decoding endpoints over the network elevate risk significantly; those using go-ipld-prime solely for local data processing face lower exposure. The denial-of-service impact (A:H in CVSS) is clear and reproducible-a sub-100-byte payload can exhaust gigabytes of memory-but requires no authentication or interaction beyond sending a crafted message. No public exploit code has been identified at the time of analysis, and CISA KEV confirmation is absent, suggesting active exploitation has not yet materialized at scale. However, the simplicity of the attack (no special tooling needed) and the widespread use of CBOR in distributed systems and blockchain applications mean this is a realistic threat once widely understood. The fix is straightforward (capping hints to 1024 entries and budgeting declared sizes), and the vendor has released a patched version, reducing urgency only for teams that can deploy updates rapidly. Organizations running unpatched versions in production should treat this as a priority remediation target, particularly if CBOR endpoints are exposed to untrusted input.

Exploit ScenarioDerived

An attacker sends a crafted CBOR-encoded message to an application exposing a DAG-CBOR decoding endpoint (e.g., an IPFS node, a blockchain full node, or a distributed system accepting CBOR data). The message is under 100 bytes but contains nested structures with headers declaring millions of entries per level. The decoder attempts to preallocate backing structures for each declared size without checking limits, consuming gigabytes of RAM before reading any actual data. Within seconds, the application exhausts available memory and crashes, achieving denial-of-service without authentication or computational overhead. No public proof-of-concept code has been identified, but the vulnerability is straightforward to exploit and requires only basic understanding of CBOR encoding.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 06, 2026

Denial-of-service vulnerability in go-ipld-prime DAG-CBOR decoder allows remote attackers to cause excessive memory allocation through CBOR headers declaring arbitrarily large collection sizes without preallocation caps. A malicious payload under 100 bytes with nested structures can trigger over 9GB of memory allocation, crashing applications using the library. The vulnerability affects all versions prior to v0.22.0, and while no confirmed active exploitation has been reported, the attack requires only unauthenticated network access and minimal attacker resources.

RemediationAI

Upgrade go-ipld-prime to v0.22.0 or later, which implements caps on preallocation size hints (limited to 1024 entries) and properly decrements the allocation budget when collection sizes are declared. The fix is available as a released version at https://github.com/ipld/go-ipld-prime/releases/tag/v0.22.0 and the upstream patch commit e43bf4a27055fe8d895671a731ee5041e2d983a9. For applications unable to update immediately, minimize exposure by restricting CBOR decoding endpoints to trusted sources, implementing external request-size limits (e.g., maximum message size in reverse proxies), and monitoring memory usage for anomalous spikes. No workaround within the library itself is available for older versions; patching is the definitive fix. Consult the GitHub Security Advisory at https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-378j-3jfj-8r9f for additional context and verification of fix effectiveness.

Affected Packages

go github.com/ipld/go-ipld-prime fix: 0.22.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The go-ipld-prime library (github.com/ipld/go-ipld-prime) implements CBOR (Concise Binary Object Representation) decoding with support for IPLD (InterPlanetary Linked Data) structures. The vulnerability exists in the DAG-CBOR decoder's handling of collection size hints. CBOR headers for maps and lists include a declared size parameter that the decoder previously used directly as a preallocation hint for Go's internal map and slice data structures. The root cause (CWE-770: Allocation of Resources Without Limits or Throttling) stems from two design flaws: the decoder did not cap these hints, and the allocation budget tracking mechanism only decremented cost as entries were actually decoded, not when sizes were declared. This creates a gap between declared collection size and actual memory cost. Schema-free decoding using basicnode.Prototype.Any amplifies the risk by permitting arbitrary nesting depth; even schema-bound decoding remains vulnerable when fields are typed as Any, allowing unconstrained nesting within those fields. The compounding effect of nested structures means each nesting level triggers independent, unchecked preallocation while consuming minimal budget (one entry per parent level), enabling exponential memory growth.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/ipld/go-ipld-prime) PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM

Primary rating from Vendor (https://github.com/ipld/go-ipld-prime).

CVSS VectorVendor: https://github.com/ipld/go-ipld-prime

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 06, 2026 - 23:31 nvd
Patch available
CVE Published
Apr 06, 2026 - 23:08 nvd
MEDIUM 6.2

DescriptionCVE.org

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.

A CBOR map or list header can declare an arbitrarily large number of entries, causing the decoder to preallocate proportionally large backing structures before any entries are actually read. Because the allocation budget is only decremented as entries are decoded (not when sizes are declared), this cost is effectively invisible to the budget system. This is compounded by nesting: each level of a nested structure triggers its own unchecked preallocation while consuming minimal budget (one entry per parent level), so a payload under 100 bytes with 10 levels of nesting can cause over 9GB of allocation.

Schema-free decoding (i.e. using basicnode.Prototype.Any) allows arbitrary nesting depth. Schema-bound decoding limits nesting to the schema's structure, but any field typed as Any in the schema permits unconstrained nesting within that field.

The fix caps the preallocation size hint to 1024 entries and decrements the allocation budget when collection sizes are declared. The declared length is still used for entry-count validation, and collections grow dynamically as entries are decoded, so correctly-formed data is unaffected, even beyond the preallocation limit.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:go/github.com_ipld_go-ipld-prime

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy