PT-2026-51067 · Git+4 · Oj+1

·

CVE-2026-54592

·

Published

2026-06-19

·

Updated

2026-07-01

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Oj versions prior to 3.17.3
Description When Oj::Doc#each child is invoked recursively over a deeply nested JSON document, it can cause a fixed-size stack buffer overflow, leading to a denial of service (DoS) that aborts the process. This occurs due to a two-step chain in ext/oj/fast.c where the doc each child() function increments the doc->where variable beyond the where path array without a bounds check and fails to restore it. Consequently, subsequent recursive calls cause a memcpy operation to overflow the save path stack-local buffer. This is possible because the Oj::Doc parser does not impose a JSON nesting-depth limit.
Recommendations Update to version 3.17.3.

Exploit

Fix

DoS

Out of bounds Read

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-54592
GHSA-3M6Q-JJ5J-38C9

Affected Products

Oj
Ruby-Oj