CVE-2022-23495 in Protocol Go-Merkledag
go-merkledag implements the 'DAGService' interface and adds two ipld node types, Protobuf and Raw for the ipfs project. A `ProtoNode` may be modified in such a way as to cause various encode errors which will trigger a panic on common method calls that don't allow for error returns. A `ProtoNode` should only be able...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Protocol | Go-Merkledag | ≥ 0.4.0, < 0.8.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
go-merkledag implements the 'DAGService' interface and adds two ipld node types, Protobuf and Raw for the ipfs project. A `ProtoNode` may be modified in such a way as to cause various encode errors which will trigger a panic on common method calls that don't allow for error returns. A `ProtoNode` should only be able to encode to valid DAG-PB, attempting to encode invalid DAG-PB forms will result in an error from the codec. Manipulation of an existing (newly created or decoded) `ProtoNode` using the modifier methods did not account for certain states that would place the `ProtoNode` into an unencodeable form. Due to conformance with the [`github.com/ipfs/go-block-format#Block`](https://pkg.go.dev/github.com/ipfs/go-block-format#Block) and [`github.com/ipfs/go-ipld-format#Node`](https://pkg.go.dev/github.com/ipfs/go-ipld-format#Node) interfaces, certain methods, which internally require a re-encode if state has changed, will panic due to the inability to return an error. This issue has been addressed across a number of pull requests. Users are advised to upgrade to version 0.8.1 for a complete set of fixes. Users unable to upgrade may attempt to mitigate this issue by sanitising inputs when allowing user-input to set a new `CidBuilder` on a `ProtoNode` and by sanitising `Tsize` (`Link#Size`) values such that they are a reasonable byte-size for sub-DAGs where derived from user-input.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-23495 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-313391-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-12-08 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-252: CWE-252
CWE-755: CWE-755
Analysis AI-written, not human-reviewed
CVE-2022-23495 affects the go-merkledag library used in the IPFS project, specifically the 'DAGService' interface and its 'ProtoNode' implementation. Malformed DAG-PB data can cause a panic during encoding, leading to potential denial of service or other unintended behavior.
An attacker can craft a malicious DAG-PB node that, when processed by the 'ProtoNode' encoding methods, triggers a panic. This can occur during common operations that do not handle errors, such as data retrieval or manipulation.
Questions
What is CVE-2022-23495?
CVE-2022-23495 affects the go-merkledag library used in the IPFS project, specifically the 'DAGService' interface and its 'ProtoNode' implementation. Malformed DAG-PB data can cause a panic during encoding, leading to potential denial of service or other unintended behavior.
What is the CVSS score for CVE-2022-23495?
CVE-2022-23495 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.8%.
Is CVE-2022-23495 actively exploited?
No confirmed active exploitation of CVE-2022-23495 as of 2026-09-25.
How do I remediate CVE-2022-23495?
Priority: MEDIUM.
What systems are affected by CVE-2022-23495?
CVE-2022-23495 affects Protocol Go-Merkledag.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Protocol","product":"Go-Merkledag","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.