CVE-2026-141523
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76
- https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3
- https://github.com/ruby/json/releases/tag/v2.18.2
- https://github.com/ruby/json/releases/tag/v2.19.3
- https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99
- https://github.com/advisories/GHSA-cjpr-jw2g-fw99
CWEs
CWE-787
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.