CVE-2026-71847: Heap use-after-free in Ruby JSON ResumableParser partial_value
CVE-2026-71847 is a heap-use-after-free vulnerability in the Ruby JSON native C extension affecting versions 2.20.0 through versions before 2.21.2. JSON::ResumableParser clears its consumed input buffer without invalidating state.start, state.cursor, and state.end, leaving pointers into released storage. When partial_value reconstructs an incomplete object containing duplicate keys, the duplicate-key warning path invokes cursor_position, which dereferences the stale pointers. Attacker-controlled JSON streams can consequently cause the Ruby process to terminate.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can crash the native Ruby process, causing denial of service for the application or worker processing the malicious JSON stream. No code execution, information disclosure, or integrity impact is established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid calling JSON::ResumableParser#partial_value on incomplete attacker-controlled JSON streams. Where feasible, fully buffer and validate untrusted JSON before processing rather than reconstructing partial objects, or disable workflows that expose partial_value to untrusted input. Duplicate object keys are required to trigger the identified vulnerable warning path.
Remediation
Patch, then assume compromise.
Upgrade the RubyGems json package to version 2.21.2 or later. For affected VMware Tanzu deployments, apply the corresponding fixed product release: Telemetry for VMware Tanzu Platform 2.4.13, Platform Services for VMware Tanzu Platform 10.4.5, or the applicable Foundation Core release identified as containing the fix: 3.1.14 or 3.1.16 for ops-manager-azure, or 3.3.5 for ops-manager-vsphere.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-71847 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2026-71847 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-71847?
- Yes. As of Oct 25, 2026, Mallory has reports of a public exploit for CVE-2026-71847.
- Is there a patch for CVE-2026-71847?
- Upgrade the RubyGems json package to version 2.21.2 or later. For affected VMware Tanzu deployments, apply the corresponding fixed product release: Telemetry for VMware Tanzu Platform 2.4.13, Platform Services for VMware Tanzu Platform 10.4.5, or the applicable Foundation Core release identified as containing the fix: 3.1.14 or 3.1.16 for ops-manager-azure, or 3.3.5 for ops-manager-vsphere.
- How severe is CVE-2026-71847?
- CVE-2026-71847 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.43% (29th percentile) as of Oct 25, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.