CVE-2026-141523
Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| json ruby |
>= 2.18.0, < 2.18.2 (affected) >= 2.19.0, < 2.19.3 (affected) |
CNA: GitHub_M |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H | CNA: GitHub_M |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76CNA: GitHub_M · x_refsource_MISC
- https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3CNA: GitHub_M · x_refsource_MISC
- https://github.com/ruby/json/releases/tag/v2.18.2CNA: GitHub_M · x_refsource_MISC
- https://github.com/ruby/json/releases/tag/v2.19.3CNA: GitHub_M · x_refsource_MISC
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.