Vulnerability
CVE-2026-54899
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, disabling symbol_keys on a reused Oj::Parser instance triggers a heap use-after-free. When symbol_keys is toggled from true to false, opt_symbol_keys_set frees the internal key cache (cache_free) but does not clear the pointer. The next parse call reads from the freed cache via cache_intern, producing a use-after-free. This issue has been fixed in version 3.17.2.
65 advisories report this vulnerability, across 5 ecosystems.
Advisories in Wolfi
- CGA-2jg8-6583-68xh
- CGA-6m84-72fc-cm4g
- CGA-6qfm-672p-fc64
- CGA-9fgq-rvxc-727v
- CGA-ch2j-wh3w-wfch
- CGA-ff53-jrj7-fq32
- CGA-gjfh-vr4r-5j45
- CGA-hghj-gcqq-8mp8
- CGA-hr55-9rmp-8478
- CGA-jh9p-42w8-3qmj
- CGA-jhm6-fpr4-r383
- CGA-m45f-xg59-mjq6
- CGA-p4m5-q72j-999q
- CGA-qchf-2ch9-6cf7
- CGA-qj83-3crm-rhgg
- CGA-vcqj-hjph-5w7r