CVE-2026-141523

NameCVE-2026-141523
DescriptionRuby 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-json (PTS)bookworm2.6.3+dfsg-1vulnerable
trixie2.9.1+dfsg-1vulnerable
forky, sid3.2.0+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-jsonsource(unstable)2.19.4+dfsg-1

Notes

https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99
Fixed by: https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76 (v2.19.3)
Fixed by: https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3 (v2.18.2)

Search for package or bug name: Reporting problems