PT-2026-51089 · Ohler55+3 · Oj+1
CVSS v4.0
6.3
Medium
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Oj versions prior to 3.17.2
Description
Oj is a JSON parser and Object marshaller for Ruby. The
Oj.load function is susceptible to heap corruption when processing a JSON string exceeding 2 GB. An integer overflow occurs within the buf append string() function (located in buf.h:61), where the string length is converted to a large negative size t. This causes memcpy to copy an excessive amount of data out of bounds, leading to process crashes and corruption of adjacent heap memory. The issue is triggered during escape sequence handling in the read escaped str() function, where the remaining string length is incorrectly computed as an int.Recommendations
Update Oj to version 3.17.2 or later.
Exploit
Fix
Integer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Oj
Ruby-Oj