CVE-2026-71847
Last modified
CVE-2026-71847 is a high-severity vulnerability rated 8.7/10 on the CVSS scale. 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.
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.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ruby | json | >= 2.20.0, < 2.21.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-71847?
How severe is CVE-2026-71847?
How do I fix CVE-2026-71847?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-7178A weakness has been identified in ChatGPTNextWeb NextChat up…7.3
- CVE-2026-7179A security vulnerability has been detected in OSPG binwalk u…5.3
- CVE-2026-7182Diagram's export module is vulnerable to Path Traversal in s…9.2
- CVE-2026-7183A vulnerability has been found in aligungr UERANSIM up to 3.…5.5
- CVE-2026-7184Mattermost versions 11.6.x <= 11.6.1, 11.5.x <= 11.5.4, 10.1…6.5
- CVE-2026-71845A flaw was found in insights-client. The setDefault() functi…6.3
- CVE-2026-71848Hono is a Web application framework that provides support fo…5.3
- CVE-2026-71849Hono is a Web application framework that provides support fo…3.7
- CVE-2026-7185A validation vulnerability has been identified in certain we…6
- CVE-2026-71850Hono is a Web application framework that provides support fo…4.8
- CVE-2026-71851crypto-js is a JavaScript library of crypto standards. Versi…9
- CVE-2026-71852pypdf is a free and open-source pure-python PDF library. Pri…4.8
Are you affected by CVE-2026-71847?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
