top of page
perceptive_background_267k.jpg

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 ove…

Published:

30 juni 2026 om 22:00:00

Alert date:

1 juli 2026 om 01:01:07

Source:

nvd.nist.gov

Click to open the original link from this advisory

Supply Chain & Dependencies, Web Technologies

A stack buffer overflow vulnerability exists in the Oj (Optimized JSON) Ruby gem prior to version 3.17.3. The flaw resides in ext/oj/fast.c where the doc_each_child function increments doc->where past the where_path[MAX_STACK=100] array without bounds checking and fails to restore the pointer. When each_child is invoked recursively inside a yield block on deeply nested JSON, doc->where is driven beyond the array boundary. On the next entry, a memcpy overflows the 800-byte stack-local save_path buffer, causing a process abort and Denial of Service. The parser imposes no JSON nesting-depth limit, making it reachable by attacker-controlled input. The vulnerability has been patched in Oj version 3.17.3.

Technical details

Mitigation steps:

Affected products:

Oj (Optimized JSON) Ruby gem < 3.17.3

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Deze website toont informatie afkomstig van externe bronnen; Perceptive aanvaardt geen verantwoordelijkheid voor de juistheid, volledigheid of actualiteit van deze informatie.

bottom of page