# CVE-2026-141523: Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T20:40:10.234Z
- Modified: 2026-12-01T21:30:04.283Z
- Also known as: GHSA-cjpr-jw2g-fw99
- Weaknesses: CWE-787
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ruby json: >= 2.18.0, < 2.18.2; >= 2.19.0, < 2.19.3
- json (RubyGems): from 2.18.0 before 2.18.2; from 2.19.0 before 2.19.3

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99> (web)
- <https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76> (web)
- <https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3> (web)
- <https://github.com/ruby/json/releases/tag/v2.18.2> (web)
- <https://github.com/ruby/json/releases/tag/v2.19.3> (web)
- <https://github.com/ruby/json> (package)

## Sources

- CVE List: [CVE-2026-141523](https://www.cve.org/CVERecord?id=CVE-2026-141523), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-cjpr-jw2g-fw99](https://github.com/advisories/GHSA-cjpr-jw2g-fw99), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-141523](https://nvd.nist.gov/vuln/detail/CVE-2026-141523), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-141523 · Whole record: https://cve.day/CVE-2026-141523.json · Rebuilt by cve.day 2026-12-01T21:37:24.826Z
