cvelo
P3 · MediumCVSS 6.5EPSS 0.8%

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

  • CVE-2026-141523
  • GHSA-cjpr-jw2g-fw99
  • EUVD-2026-140723

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • ruby json

    Affected versionsFixed in
    >= 2.18.0, < 2.18.2none stated
    >= 2.19.0, < 2.19.3none stated
  • jsonRubyGems

    Affected versionsFixed in
    from 2.19.0 to before 2.19.32.19.3
    from 2.18.0 to before 2.18.22.18.2

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.