8.7

CVE-2026-71847: ruby json Use After Free

CVSS: 8.7v4.0HighAwaiting 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.43% chance of exploitation in the next 30 days, higher than 35.6% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.43%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 3

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.43%

Chance of exploitation in the next 30 days

Percentile

36%

Versus all other CVEs

30-day change

+0.04 pp

From 0.39% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.43%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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