{"id":"CVE-2026-54899","published":"2026-06-30T23:03:15Z","modified":"2026-07-01T14:26:28Z","title":"Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle","vendor":"ohler55","product":"oj","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00407,"percentile":0.35863,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/ohler55/oj/security/advisories/GHSA-2cw7-v8ff-p88r","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.17},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ohler55","affectedVersions":[{"vendor":"ohler55","product":"oj","versions":["< 3.17.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-01T13:38:09.223016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"oj","vulnerableRanges":["<3.17.2"],"patched":["3.17.2"],"from":["GHSA-2cw7-v8ff-p88r"],"provenance":"source"}],"summary":{"text":"The Oj (Optimized JSON) gem by ohler55 contains a use-after-free in its Oj::Parser symbol key cache: disabling symbol_keys on a reused parser instance frees the key cache without clearing its pointer, so the next parse call reads freed memory. An attacker with network access can trigger this without authentication or user interaction, provided the reused parser instance has symbol_keys toggled from true to false, which depends on the application's parser configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:56Z"},"euvd":{"id":"EUVD-2026-40848","exploited":false,"provenance":"source"}}