Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.
Project Subscriptions
No data.
Advisories
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-cjpr-jw2g-fw99 | Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 01 Dec 2026 21:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3. | |
| Title | Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled | |
| Weaknesses | CWE-787 | |
| References |
|
|
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-12-01T20:40:10.234Z
Reserved: 2026-12-01T20:30:34.483Z
Link: CVE-2026-141523
No data.
Status : Received
Published: 2026-12-01T21:17:11.827
Modified: 2026-12-01T21:17:11.827
Link: CVE-2026-141523
No data.
OpenCVE Enrichment
No data.
Weaknesses
Github GHSA