PT-2026-165325
تاريخ النشر
2026-12-01
·
تاريخ التحديث
2026-12-01
الوصف من
CVSS 3.1
6.5
متوسطةالمقاييسAV: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. وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾