CVE-2026-141523

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Published Dec 1, 2026 CVSS 3.1 · 6.5 Medium EPSS n/a KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cjpr-jw2g-fw99 Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled
History
Type Values Removed Values Added
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.
Title Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 1, 2026, 8:40 PM
Reserved
Dec 1, 2026, 8:30 PM
Status
Received
Published
Dec 1, 2026, 9:17 PM
Modified
Dec 1, 2026, 9:17 PM