PT-2026-165325
Publicado
2026-12-01
·
Atualizado
2026-12-01
Descrição por
CVSS 3.1
6.5
MédiaMétricasAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Summary
Parsing invalid JSON with the
allow control characters: true option enabled can result in an out of bound write, potentially corrupting the heap, but more likely a VM crash.Details
If an ASCI control character is preceded by a backslash, the bound checks can be defeated.
Originally fixed as a regular bug in
json 1.9.3.Proof of concept
The issue can easily be reproduced with a backslash followed by a control character. Some padding is required.
ruby
require "json"
doc = '"' + ("A" * 4096) + "x01" + '"'
JSON.parse(doc, allow control characters: true)Impact
If the
allow control characters: true option is used to parse untrusted input, it could be used as a DOS vector.Explorabilidade
Correção
Impactos
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾