PT-2026-51088 · Ohler55+4 · Oj+1

·

CVE-2026-54902

·

Published

2026-06-19

·

Updated

2026-08-05

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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. A Use-After-Free issue exists when using the Oj::Parser in SAJ mode. The parser fails to protect cached object keys of 35 bytes or more from garbage collection. If a Ruby callback triggers garbage collection within the hash end function, the key string may be reclaimed while the C parser still maintains a pointer to it. Subsequent access to this freed string value can lead to a segmentation fault, potentially allowing control over the freed memory content.
Recommendations Update Oj to version 3.17.2 or later.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

CVE-2026-54902
GHSA-M578-W5VF-RFCM

Affected Products

Oj
Ruby-Oj