CVE catalog

CVE-2026-71847

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 s

[CVE catalog]

Severity
High · CVSS 8.7CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.43% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-jsonsid3.1.0+dfsg-1not affected
Debianruby-jsonforky3.1.0+dfsg-1not affected
Debianruby-jsontrixie2.9.1+dfsg-1not affected
Debianruby-jsonbookworm2.6.3+dfsg-1not affected
RubygemsjsonNot reported2.21.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-jsonsourcesidNot affectedunimportantNot reportedNot reported
Debianruby-jsonsourceforkyNot affectedunimportantNot reportedNot reported
Debianruby-jsonsourcetrixieNot affectedunimportantNot reportedNot reported
Debianruby-jsonsourcebookwormNot affectedunimportantNot reportedNot reported
RubygemsjsonrubygemsNot reported2.21.2Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [ruby-json]Affected

    Source package: [ruby-json]

    Details (2)
    • 2.9.1+dfsg-1+b1 · amd64 · trixie

      Affected

      nvd · ruby-json · debian · 13

    • 2.9.1+dfsg-1+b1 · arm64 · trixie

      Affected

      nvd · ruby-json · debian · 13

[Debian 12 (Bookworm)]

  • [ruby-json]Not affected
    Details (2)
    • 2.6.3+dfsg-1 · amd64 · bookworm

      Not affected

      nvd · ruby-json · debian · bookworm

    • 2.6.3+dfsg-1 · arm64 · bookworm

      Not affected

      nvd · ruby-json · debian · bookworm

Observed:

References