<Vulnerability name="CVE-2026-54901">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-06-30T23:36:38</PublicDate>
    <Bugzilla id="2495919" url="https://bugzilla.redhat.com/show_bug.cgi?id=2495919" xml:lang="en:us">
Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking
    </Bugzilla>
    <Details xml:lang="en:us" source="Mitre">
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj::Parser in usual mode does not mark array_class and hash_class references during garbage collection, leading to Use-After-Free. If GC runs after the class is assigned but before a parse, the class object is reclaimed, leaving the parser holding a dangling VALUE. The subsequent parse call dereferences the freed object, producing a segfault. This issue has been fixed in version 3.17.2.
    </Details>
    <Statement xml:lang="en:us">
Red Hat's only product shipping the Oj Ruby gem (Compliance Backend) already includes version 3.17.3, which contains the fix for this vulnerability. No Red Hat products are affected.
    </Statement>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-54901
https://nvd.nist.gov/vuln/detail/CVE-2026-54901
https://github.com/ohler55/oj/security/advisories/GHSA-vwm4-62gf-x745
    </References>
</Vulnerability>