patchminder
Proof of concept · CISA assessment CVE-2026-54592

Out-of-bounds readin ohler55 oj.

Published 30 Jun 2026 · Updated 1 Jul 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.17.3 or later
In plain words

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.

What to do now
  • Upgrade oj to 3.17.3 or later.
  • Upgrade oj (RubyGems) to 3.17.3 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
oj
before 3.17.3
3.17.3
CVE record
oj (RubyGems)
before 3.17.3
3.17.3
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jun 2026
    CVE ID reserved by GitHub_M.
  2. 30 Jun 2026
    Published in the CVE List.
  3. 1 Jul 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other oj vulnerabilities

Same weakness: Out-of-bounds read

All CWE-125 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-54592: Out-of-bounds read in ohler55 oj. https://patchminder.com/cve/cve-2026-54592/ (accessed 5 December 2026).