Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-35480 EUVD-2026-19663GHSA-378j-3jfj-8r9fGO-2026-5073

go-ipld-prime's DAG-CBOR decoder unbounded memory allocation from CBOR headers

Published Apr 7, 2026 · Updated Apr 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ipld go-ipld-prime < 0.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kubo 0.40.1-1.1 openSUSE-SU-2026:10543-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ipfs-cluster 1.1.5-r11 —
Wolfi rolling k3s +1 1.35.3.1-r5 —
Wolfi rolling k3s-1.32 +1 1.32.13.1-r10 —
Wolfi rolling k3s-1.34 +1 1.34.6.1-r5 —
Wolfi rolling k3s-1.35 +1 1.35.3.1-r4 —
Wolfi rolling spegel 0.6.0-r11 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ipld/go-ipld-prime < 0.22.0 0.22.0 GHSA-378j-3jfj-8r9f

Advisories 2

References