Vulnerability
CVE-2026-54901
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.
65 advisories report this vulnerability, across 5 ecosystems.
Advisories in Wolfi
- CGA-23m3-49m6-qxcv
- CGA-2jhp-575w-c5qh
- CGA-3hc8-36cg-r2vf
- CGA-46pp-7955-jq7f
- CGA-49mp-rh45-32g5
- CGA-7p6r-x7fj-wc7r
- CGA-7wj9-c9h2-hqqc
- CGA-8fwj-xqff-26vr
- CGA-9mmw-9mcv-96xv
- CGA-cmw7-xq2j-95f8
- CGA-cwv8-qwx4-x9h3
- CGA-g7jg-jrpg-5j2w
- CGA-gxcw-mffm-9q6v
- CGA-j37q-qgr9-r528
- CGA-mwg3-jfcr-mmwr
- CGA-q443-rx5w-vfxh