Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
4355 articles · 196337 vulns · 36/41 feeds (7d)
← Back to list
—
CVE-2026-71847PATCHED
rubygems · json

Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams

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.

Affected Products

VendorProductVersions
rubygemsjson>= 2.20.0, < 2.21.2

References

  • https://github.com/ruby/json/security/advisories/GHSA-9hj4-r449-hfvc(x_refsource_CONFIRM)

Related News (1 articles)

Tier C
VulDB16d ago
CVE-2026-71847 | Ruby JSON up to 2.21.1 Resumable Parser partial_value use after free
→ No new info (linked only)
CISA KEV❌ No
Actively exploited❌ No
Patch available
json@2.21.2
CWECWE-416
PublishedAug 7, 2026
Tags
GHSA-9hj4-r449-hfvcrubygems
Trending Score6
Source articles1
Independent1
Info Completeness0/14
Missing: cve_id, title, description, vendor, product, versions, cvss, epss, cwe, kev, exploit, patch, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

NONECVE-2026-66066
Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Trending: 61
NONECVE-2026-61666
websocket-driver: Denial of service via malformed Host header
Trending: 8
HIGHCVE-2026-45378
Decidim: Verification documents can be downloaded through reusable links
Trending: 7
HIGHCVE-2026-45414
Decidim: JWT-backed authentication can be replayed across organizations
Trending: 5
MEDIUMCVE-2026-45415
Decidim: CSV census record endpoints improper authorization
Trending: 4

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Aug 7, 2026
Discovered by ZDM
Aug 7, 2026
Patch Available
Aug 7, 2026