NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🛡️
Not in CISA KEV
MEDIUM severity

CVE-2026-141523 — Ruby

MEDIUMFix: ruby/json@75e2f64

CVE-2026-141523 is a medium-severity (CVSS 6.5) Out-of-bounds Write vulnerability. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.

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…

Published
Updated
Affected
—
Patched
See advisory
Exploits
None indexed
Exploitation data as of Dec 1, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

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.

Detection & mitigation playbook

Vulnerability
  1. Detect

    Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).

  2. Remediation status

    The records we use list no fixed release for CVE-2026-141523. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.

  3. Mitigate without a patch

    Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Red Hat has evaluated this vulnerability as Moderate severity because exploitation requires an application to explicitly enable the non-default `allow_control_characters` option when parsing untrusted JSON inputs. Under these specific preconditions, an attacker providing a specially crafted malformed JSON string can…

Workaround published by Red Hat
Disable the `allow_control_characters` option in application configuration or parser options when processing untrusted JSON data, leaving it at its default disabled setting (`false`). Caveats: Disabling control character parsing will cause `JSON.parse` to reject JSON payloads containing unescaped ASCII control characters. Any application service modified with this configuration change must be restarted for the setting to take effect.
Source: Red Hat security advisory for CVE-2026-141523 (CC BY 4.0)

Frequently Asked Questions

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
O3 Security · Impact-Aware SCA

Is CVE-2026-141523 in your dependencies?

Find it across your dependency tree, including transitive dependencies.