Skip to main content
VulnerabilityPublished Updated

CVE-2026-54592: Ruby oj · Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem

Affects ruby-ojSource GCVE Database

0
Compare
Authoritative record:CVE-2026-54592· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 3.17.3 : patch ruby-oj soon.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.17.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10ruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=stonkingOther threatsAffected
  • 3.16.15-1 – 3.17.4-1
5 affected builds
Fixed in–
Ubuntu 26.04 LTSruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=resoluteOther threatsAffected
  • =3.16.3-1build3
  • =3.16.12-1
  • =3.16.15-1
Fixed in–
Ubuntu 25.10ruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=questingOther threatsAffected
  • =3.16.3-1build3
Fixed in–
Ubuntu 24.04 LTSruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=nobleOther threatsAffected
  • 3.15.0-1 – 3.16.3-1build2
5 affected builds
Fixed in–
Ubuntu 22.04 LTSruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=jammyOther threatsAffected
  • 3.11.0-1 – 3.13.9-1build1
5 affected builds
Fixed in–
Ubuntu 20.04 LTSruby-ojpkg:deb/ubuntu/ruby-oj?arch=source&distro=focalOther threatsAffected
  • 3.8.1-1 – 3.10.1-1build1
5 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. In a two-step chain in ext/oj/fast.c, doc_each_child increments doc->where past the where_path[MAX_STACK = 100] array with no bounds check and never restores it (the doc->where-- is missing), so calling each_child recursively from inside the yield block drives doc->where beyond the array. On the next entry the function copies the path into the 800-byte stack-local buffer save_path[MAX_STACK] using wlen = doc->where - doc->where_path, so when the previous recursive call left doc->where past where_path[100] the wlen exceeds MAX_STACK and the memcpy overflows save_path on the C stack; because the Oj::Doc parser imposes no JSON nesting-depth limit (relying on a C-stack pressure check), deeply nested attacker input reaches this path. This issue has been fixed in version 3.17.3.

References

Community reviews

Loading reviews…