Ruby JSON: Out of Bound Write in parser when allow_control_characters: true is enabled
- Exploited
- No known exploitation
- Fix
- Fixed in 2.18.2, 2.19.3
- Who is exposed
- Not reported
Summary
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.
What to do
Upgrade to a fixed version: 2.18.2, 2.19.3.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-141523 (Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-141523 (entry last updated 2026-12-01):
Affected:
- ruby json: from 2.18.0, fixed in 2.18.2; from 2.19.0, fixed in 2.19.3
Fixed versions: 2.18.2, 2.19.3.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-141523 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-141523 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-141523
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-141523"}.Affected versions
- ruby jsonFrom 2.18.0 · fixed in 2.18.2; From 2.19.0 · fixed in 2.19.3
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.5/10CVSS 6.5
- No patch0/5No signal
What would change the score
- Would score about 69 if added to CISA KEV
- Would score about 64 if CISA's SSVC rates exploitation active
- Would score about 29 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · ruby/json · Advisory GHSA-cjpr-jw2g-fw99 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-141523 |
| Record | NVD · CVE-2026-141523 |
| Other links 4 | |
| Repository | GitHub · ruby/json · Commit 75e2f645 |
| Repository | GitHub · ruby/json · Commit dcfbbcd3 |
| Repository | GitHub · ruby/json · Release v2.18.2 |
| Repository | GitHub · ruby/json · Release v2.19.3 |
Questions about CVE-2026-141523
Is CVE-2026-141523 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-141523?
json: from 2.18.0 before 2.18.2; from 2.19.0 before 2.19.3.
Source: cve.now feed data
How do I fix CVE-2026-141523?
Upgrade to a fixed version: 2.18.2, 2.19.3.
Source: cve.now feed data
Related
- CVE-2026-71847Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams
- CVE-2026-33210Ruby JSON has a format string injection vulnerability
- CVE-2025-27788Ruby JSON Parser has Out-of-bounds Read
- CVE-2026-54696Ruby JSON: JSON generator heap buffer overflow when streaming to an IO
- CVE-2026-41316ERB has an @_init deserialization guard bypass via def_module / def_method / def_class
- CVE-2026-42246net-imap vulnerable to STARTTLS stripping via invalid response timing
No corrections so far. Something wrong on this page? Report an error.