Ruby JSON up to 2.21.1 Resumable Parser partial_value use after free
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 2.23- |
Summary
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.
Details
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.
Product
Type
Vendor
Name
Version
License
Website
- Product: https://github.com/ruby/json/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.4VulDB Meta Temp Score: 5.2
VulDB Base Score: 5.4
VulDB Temp Score: 5.2
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Use after freeCWE: CWE-416 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 333382
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-71847
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: JSON 2.21.2
Timeline
08/07/2026 Advisory disclosed08/07/2026 CVE reserved
08/07/2026 VulDB entry created
08/08/2026 VulDB entry last update
Sources
Product: github.comAdvisory: github.com
Status: Confirmed
CVE: CVE-2026-71847 (🔒)
GCVE (CVE): GCVE-0-2026-71847
GCVE (VulDB): GCVE-100-387068
Entry
Created: 08/07/2026 21:09Updated: 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.
No comments yet. Languages: en.
Please log in to comment.