PT-2026-51083 · Ohler55+3 · Oj+1

·

CVE-2026-54897

·

Published

2026-06-19

·

Updated

2026-07-01

CVSS v4.0

2.1

Low

VectorAV:L/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::Doc iterators (each value, each child, each leaf) are subject to a heap use-after-free. This occurs when a Ruby block yielded during iteration calls doc.close or d.close, causing the document's heap memory to be freed while the C iterator is still active. Upon returning control from the block, the iterator attempts to read from the freed memory region, making the use-after-free accessible from pure Ruby.
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-54897
GHSA-9PPP-W3G4-FH4Q

Affected Products

Oj
Ruby-Oj