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

Status: published. Published: 2026-12-01. Updated: 2026-12-01.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- ruby / json: >= 2.18.0, < 2.18.2 (affected); >= 2.19.0, < 2.19.3 (affected). Source: CNA: GitHub_M

## Severity and prioritization

- 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; source: CNA: GitHub_M

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-787

## 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-fw99 (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/ruby/json/releases/tag/v2.18.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/ruby/json/releases/tag/v2.19.3 (CNA: GitHub_M; x_refsource_MISC)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-141523; retrieved 2026-12-01; source updated 2026-12-01

Revision: 3c014eb7d64bef3b91628cc005ccda1899f81531958491414795adee4d36cd9c

Canonical: https://y2.dev/cve/CVE-2026-141523

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.