Bug 2512602 (CVE-2026-71847) - CVE-2026-71847 json: Ruby JSON: Denial of Service via heap-use-after-free in JSON::ResumableParser
Summary: CVE-2026-71847 json: Ruby JSON: Denial of Service via heap-use-after-free in ...
Keywords:
Status: NEW
Alias: CVE-2026-71847
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-07 18:51 UTC by OSIDB Bzimport
Modified: 2026-09-02 06:17 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-07 18:51:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.