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.
Products: ruby json
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| RubyGems | json | 2.21.2 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | cinc-auditor | 7.1.7-r7 |
| Chainguard | cinc-auditor | 7.1.7-r6 |
| Chainguard | logstash-9.5 | 9.5.1-r3 |
| Chainguard | logstash-9.5-iamguarded-compat | 9.5.1-r3 |
| Chainguard | logstash-fips-9.5 | 9.5.0-r2 |
| Chainguard | logstash-fips-9.5-iamguarded-compat | 9.5.0-r2 |
| Chainguard | pact-broker-docker | 2.142.0.2.120.0-r1 |
| Chainguard | pact-broker-docker-fips | 2.142.0.2.120.0-r1 |
| Chainguard | ruby3.2-rails-8.1 | 8.1.3.1-r1 |
| Chainguard | ruby3.3-rails-8.1 | 8.1.3.1-r1 |
| Chainguard | ruby3.4-rails-8.1 | 8.1.3.1-r1 |
| Debian 13 | ruby-json | no fix |
| Debian 14 | ruby-json | 2.21.2+dfsg-1 |
| SUSE Linux Enterprise High Availability Extension 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 |
| Ubuntu 14.04 LTS | ruby-json | no fix |
| Ubuntu 16.04 LTS | ruby-json | no fix |
| Ubuntu 18.04 LTS | ruby-json | no fix |
| Ubuntu 20.04 LTS | ruby-json | no fix |
| Ubuntu 22.04 LTS | ruby-json | no fix |
| Ubuntu 24.04 LTS | ruby-json | no fix |
| Ubuntu 26.04 LTS | ruby-json | no fix |
| Ubuntu 26.10 | ruby-json | no fix |
| Wolfi | cinc-auditor | 7.1.7-r6 |
| Wolfi | cinc-auditor | 7.1.7-r7 |
| Wolfi | ruby3.2-rails-8.1 | 8.1.3.1-r1 |
| Wolfi | ruby3.3-rails-8.1 | 8.1.3.1-r1 |
| Wolfi | ruby3.4-rails-8.1 | 8.1.3.1-r1 |
| openSUSE Leap 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 |
| openSUSE Tumbleweed | hawk2 | 2.7.2+git.1792148770.648dcddb-1.1 |