PT-2023-18513 · Unknown · Go-Ipld-Prime
Hacdias
·
Published
2023-01-04
·
Updated
2023-01-18
·
CVE-2023-22460
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
go-ipld-prime versions prior to 0.19.0
Description
The issue arises when encoding data that contains a
Bytes kind Node using the json codec, causing the encoder to panic as it does not expect to receive Bytes tokens. This should be treated as an error since plain JSON cannot encode bytes. The dag-json codec is not impacted, and neither is the use of json as a decoder. If the json codec is used to encode user-supplied data, it may be used as a vector for a denial of service attack.Recommendations
For versions prior to 0.19.0, update to version 0.19.0 to resolve the issue.
As a temporary workaround, consider using the
dag-json codec, which has the ability to encode bytes, instead of the json codec for encoding data that contains Bytes kind Nodes.Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Go-Ipld-Prime