Skip to content
VulniPulse
High7.5Red Hat Linux

High [CVE-2026-54592] Denial of Service via deeply nested JSON input

This high-severity Red Hat Linux advisory covers CVE-2026-54592.

CVE-2026-54592 Published Jun 30, 2026Updated by vendor Jun 30, 2026
Affected products & platforms
Red Hat LinuxUnclassified
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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. A flaw was found in Oj, a Ruby gem for JSON parsing.

A remote attacker can exploit this vulnerability by providing a deeply nested JSON document. This can lead to a stack buffer overflow in the `Oj::Doc#each_child` function, causing the process to abort and resulting in a denial of service (DoS) for the affected system.

Affected versions
  • < 3.17.3

Official advisory · high-confidence parse· fetched 12 days ago·verify at source

Fixed versions
  • 3.17.3

Official advisory · high-confidence parse· fetched 12 days ago·verify at source

Mitigation

Upgrade to a fixed release: 3.17.3. That is the remediation for this advisory.

The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.

Official advisory · high-confidence parse· fetched 12 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.