Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-22460— go-ipld-prime json codec may panic if asked to encode bytes

Quick assessment

Affected
ipld go-ipld-prime
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

go-ipld-prime是IPLD开源的一种 ipld 规范接口的实现。 go-ipld-prime存在输入验证错误漏洞,该漏洞源于其包含Bytes类节点的编码数据将向JSON编码器传递一个Bytes令牌,因为它没有期望收到Bytes令牌。这样的编码应该被视为错误,因为纯JSON不应该被允许编码字节。

CVSS 7.5 · High EPSS 1.12% · P66

Possible ATT&CK Techniques 1 AI

T1204 · User Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
ipld go-ipld-prime < 0.19.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-22460

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
go-ipld-prime json codec may panic if asked to encode bytes
Source: CVE Program / CVE List V5
Vulnerability 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. Encoding data which contains a Bytes kind Node will pass a Bytes token to the JSON encoder which will panic as it doesn't expect to receive Bytes tokens. Such an encode should be treated as an error, as plain JSON should not be able to encode Bytes. This only impacts uses of the `json` codec. `dag-json` is not impacted. Use of `json` as a decoder is not impacted. This issue is fixed in v0.19.0. As a workaround, one may prefer the `dag-json` codec, which has the ability to encode bytes.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
go-ipld-prime 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
go-ipld-prime是IPLD开源的一种 ipld 规范接口的实现。 go-ipld-prime存在输入验证错误漏洞,该漏洞源于其包含Bytes类节点的编码数据将向JSON编码器传递一个Bytes令牌,因为它没有期望收到Bytes令牌。这样的编码应该被视为错误,因为纯JSON不应该被允许编码字节。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ipld go-ipld-prime < 0.19.0 -

II. Public POCs for CVE-2023-22460

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-22460

请登录查看更多情报信息。

Patches & Fixes for CVE-2023-22460 (1)

Vendor Advisories for CVE-2023-22460 (1)

Other References for CVE-2023-22460 (1)

IV. Related Vulnerabilities