8.7

CVE-2026-71847: Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams

Awaiting analysis
AliasesUBUNTU-CVE-2026-71847DEBIAN-CVE-2026-71847CGA-5934-788f-cr4q
Published 07-08-2026Last modified 07-08-2026

Vulnerability summary

CVE-2026-71847 is a high (CVSS 8.7) Use After Free vulnerability in ruby json. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 34.7% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.39%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 8

Timeline

  1. 07-08-2026
    PublishedVulnerability first disclosed.
  2. 07-08-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

Decrease -0.04 pp

From 0.43% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard10 products
  • cinc-auditor< 7.1.7-r7 | < 7.1.7-r6
  • logstash-9.5< 9.5.1-r3
  • logstash-9.5-iamguarded-compat< 9.5.1-r3
  • logstash-fips-9.5< 9.5.0-r2
  • logstash-fips-9.5-iamguarded-compat< 9.5.0-r2
Wolfi4 products
  • cinc-auditor< 7.1.7-r7 | < 7.1.7-r6
  • ruby3.2-rails-8.1< 8.1.3.1-r1
  • ruby3.3-rails-8.1< 8.1.3.1-r1
  • ruby3.4-rails-8.1< 8.1.3.1-r1
Debian1 product
  • ruby-jsonAll versions (No fix recorded) | < 2.21.2+dfsg-1
Ruby1 product
  • json≥ 2.20.0, < 2.21.2
RubyGems1 product
  • json≥ 2.20.0, < 2.21.2
Ubuntu1 product
  • ruby-jsonAll versions (No fix recorded)

6 vendors · 18 products

References

7 links