PT-2023-18513 · Unknown · Go-Ipld-Prime

Hacdias

·

Publicado

2023-01-04

·

Atualizado

2023-01-18

·

CVE-2023-22460

CVSS v3.1

7.5

Alta

VetorAV: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

Correção

RCE

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2023-22460
GHSA-C653-6HHG-9X92
GO-2023-1269

Produtos afetados

Go-Ipld-Prime