Intel

AIKIDO-2026-11155

oj is vulnerable to Out-of-bounds Read

Out-of-bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

59

Medium Risk

This Affects:

RUBYoj
0.0.1 - 3.17.2
Fixed in 3.17.3
Are you affected? Scan for Free

TL;DR

The C extension intern.c path interned symbol names from the wrong buffer pointer when JSON keys exceeded the inline buffer size. This can read unintended memory when parsing JSON that triggers that code path. The release also bounds Oj::Doc child-iterator depth to block stack exhaustion during deeply nested traversal. The patch uses the correct allocated buffer and enforces iterator depth limits.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

oj is vulnerable to Out-of-bounds Read in versions 0.0.1 - 3.17.2.

How to fix this

Upgrade the oj library to the patch version.