Ruby json: From 2.20.0 until 2.21.2, Ruby's JSON native C extension clears the consumed JSON::ResumableParser input
Affects ruby-jsonSource GCVE Database
Not known to be exploited · CVSS 8.7 High · fixed in 2.21.2 : patch ruby-json soon.
Data as of 24 Nov 2026, 21:01 UTC
- Patch
- Available – fixed in 2.21.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Ruby JSON to version 2.21.2 or later, where this issue is fixed. No other mitigation or workaround is indicated.
Description
A heap-use-after-free vulnerability exists in Ruby JSON native C extension versions from 2.20.0 up to 2.21.2. The issue occurs when the JSON::ResumableParser input buffer is cleared but internal pointers remain referencing released memory. This leads to a crash when processing incomplete JSON objects with duplicate keys. The flaw has been fixed in version 2.21.2.