RubyGems
CVE-2026-141523
Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled
- Severity
- Medium 6.5
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 2.18.2, 2.19.3
- Weakness
- Out-of-bounds write (CWE-787)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H- Also known as
- GHSA-cjpr-jw2g-fw99
- Sources
- OSV.dev and GitHub
Description
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.
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.
If the allow_control_characters: true option is used to parse untrusted input, it could be used as a DOS vector.
Affected software
| Software | Affected versions |
|---|---|
jsonRubyGems · osv:RubyGems:json |
|
About json
- Total downloads (RubyGems)
- 1,452,854,203RubyGems, 1 Dec 2026
This is the only vulnerability in json in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141523
- GitHub Advisory Database https://github.com/advisories/GHSA-cjpr-jw2g-fw99