Patchwire CVEs, their patch status, and feeds to follow them

CVE-2026-71847

Fixed in a distro release EPSS <1%CVSS 8.7

Ruby JSON is a JSON implementation for Ruby. From 2.20.0 until 2.21.2, Ruby's JSON native C extension clears the consumed JSON::ResumableParser input buffer but leaves state.start, state.cursor, and state.end pointing into released storage. When partial_value reconstructs an incomplete object containing duplicate keys, the duplicate-key warning path calls cursor_position, which dereferences those stale pointers. This results in a heap-use-after-free and can terminate the Ruby process. An attacker who can supply JSON stream data to an application using JSON::ResumableParser may cause process termination when the application calls partial_value on incomplete attacker-controlled input containing duplicate object keys. This issue has been fixed in version 2.21.2.

Published 2026-08-07 · CVE record · OSV

Products: ruby json

Fixed upstream

EcosystemPackageFixed in
RubyGemsjson2.21.2

Distro releases

ReleasePackageFixed in
Chainguardcinc-auditor7.1.7-r7
Chainguardcinc-auditor7.1.7-r6
Chainguardlogstash-9.59.5.1-r3
Chainguardlogstash-9.5-iamguarded-compat9.5.1-r3
Chainguardlogstash-fips-9.59.5.0-r2
Chainguardlogstash-fips-9.5-iamguarded-compat9.5.0-r2
Chainguardpact-broker-docker2.142.0.2.120.0-r1
Chainguardpact-broker-docker-fips2.142.0.2.120.0-r1
Chainguardruby3.2-rails-8.18.1.3.1-r1
Chainguardruby3.3-rails-8.18.1.3.1-r1
Chainguardruby3.4-rails-8.18.1.3.1-r1
Debian 13ruby-jsonno fix
Debian 14ruby-json2.21.2+dfsg-1
SUSE Linux Enterprise High Availability Extension 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1
SUSE Linux Enterprise Server for SAP applications 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1
Ubuntu 14.04 LTSruby-jsonno fix
Ubuntu 16.04 LTSruby-jsonno fix
Ubuntu 18.04 LTSruby-jsonno fix
Ubuntu 20.04 LTSruby-jsonno fix
Ubuntu 22.04 LTSruby-jsonno fix
Ubuntu 24.04 LTSruby-jsonno fix
Ubuntu 26.04 LTSruby-jsonno fix
Ubuntu 26.10ruby-jsonno fix
Wolficinc-auditor7.1.7-r6
Wolficinc-auditor7.1.7-r7
Wolfiruby3.2-rails-8.18.1.3.1-r1
Wolfiruby3.3-rails-8.18.1.3.1-r1
Wolfiruby3.4-rails-8.18.1.3.1-r1
openSUSE Leap 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1
openSUSE Tumbleweedhawk22.7.2+git.1792148770.648dcddb-1.1