ZeroDay Brief
CVE-2026-71847

This results in a heap-use-after-free and can terminate the Ruby process.

CVSS
8.7High
Chance of exploitation (EPSS)
0.43%
Published
Aug 7, 2026
In the news
Not yet

What to do

A serious memory corruption flaw that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Ruby Json
>= 2.20.0, < 2.21.2

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.

CWE-416

Affected products

Get alerts for these →

No product list yet. It usually appears within a few days of publication.

Timeline 1

Latest change: CVE-2026-71847 published (CVSS 8.7) (Aug 7, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Fri, Aug 7, 2026

  1. CVECVE-2026-71847 published (CVSS 8.7)CVE Program · 19:18 UTC

References 2

  • github.com /ruby/json/security/advisories/GHSA-9hj4-r449-hfvc
  • github.com /ruby/json/security/advisories/GHSA-9hj4-r449-hfvc

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”