PT-2026-165325

Published

2026-12-01

·

Updated

2026-12-01

Description by

CVSS 3.1
6.5
Medium
MetricsAV: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.
Exploitability
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-CJPR-JW2G-FW99
Found an issue in the description? Have something to add? Feel free to write us 👾