Skip to main content
CVE-2026-71847VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2026-71847· High 8.7

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

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10ruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=stonkingOther threatsAffected
  • =2.18.1+dfsg-1
  • =2.21.1+dfsg-1
  • =2.21.2+dfsg-1
Fixed in–
Ubuntu 26.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=resoluteOther threatsAffected
  • =2.9.1+dfsg-1
  • =2.15.2+dfsg-1
  • =2.18.1+dfsg-1
Fixed in–
Ubuntu 24.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=nobleOther threatsAffected
  • =2.6.3+dfsg-1build2
  • =2.6.3+dfsg-1build3
  • =2.6.3+dfsg-1build4
Fixed in–
Ubuntu 22.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=jammyOther threatsAffected
  • =2.3.0+dfsg-1build1
  • =2.5.1+dfsg-2
  • =2.5.1+dfsg-2build1
Fixed in–
Ubuntu 20.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=focalOther threatsAffected
  • =2.1.0+dfsg-2
  • =2.3.0+dfsg-1
  • =2.3.0+dfsg-1build1
Fixed in–
Ubuntu 18.04 LTSruby-jsonpkg:deb/ubuntu/ruby-json?arch=source&distro=bionicOther threatsAffected
  • 2.1.0+dfsg-1 – 2.1.0+dfsg-2
4 affected builds
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.

References

Community reviews

Loading reviews…