CVE-2026-141523 — Json — CWE-787
### 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.
### 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.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-141523
CVSS 6.5/10 · MEDIUM · 01.12.2026
CWE: CWE-787
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Buffer Overflow / Memory Corruption
Summary: ### 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.
Affected: json
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N).
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L); service can be completely taken down.
🛡️ REMEDIATION
→ Apply vendor security update for json.
→ Verify ASLR/NX/Stack Canary are active.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]