Ruby JSON up to 2.21.1 Resumable Parser partial_value use after free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.2$0-$5k2.23-

Summaryinfo

A vulnerability labeled as problematic has been found in Ruby JSON up to 2.21.1. Affected by this vulnerability is the function partial_value of the component Resumable Parser. Such manipulation leads to use after free. This vulnerability is listed as CVE-2026-71847. The attack may be performed from remote. There is no available exploit.

Detailsinfo

A vulnerability was found in Ruby JSON up to 2.21.1 and classified as problematic. Affected by this issue is the function partial_value of the component Resumable Parser. The manipulation with an unknown input leads to a use after free vulnerability. Using CWE to declare the problem leads to CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. Impacted is integrity, and availability. CVE summarizes:

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.

The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-71847 since 08/07/2026. The exploitation is known to be easy. The attack may be launched remotely. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 333382 (Linux Distros Unpatched Vulnerability : CVE-2026-71847), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 2.21.2 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (333382). Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.4
VulDB Meta Temp Score: 5.2

VulDB Base Score: 5.4
VulDB Temp Score: 5.2
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Use after free
CWE: CWE-416 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 333382
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-71847

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: JSON 2.21.2

Timelineinfo

08/07/2026 Advisory disclosed
08/07/2026 +0 days CVE reserved
08/07/2026 +0 days VulDB entry created
08/08/2026 +1 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: github.com
Status: Confirmed

CVE: CVE-2026-71847 (🔒)
GCVE (CVE): GCVE-0-2026-71847
GCVE (VulDB): GCVE-100-387068

Entryinfo

Created: 08/07/2026 21:09
Updated: 08/08/2026 08:17
Changes: 08/07/2026 21:09 (57), 08/08/2026 08:17 (2)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!