{"cve":"CVE-2026-54897","nvd":{"published":"2026-07-01T00:16:32.983","modified":"2026-10-25T17:10:00.197","status":"Deferred","description":"Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to 3.17.2, Oj::Doc iterators (each_value, each_child, each_leaf) were vulnerable to a heap use-after-free. When a Ruby block yielded during iteration calls doc.close or d.close, the document's heap memory is freed while the C iterator is still running. When control returns from the block, the iterator reads from the freed region, producing a use-after-free accessible from pure Ruby. This issue has been fixed in version 3.17.2.","cvss_v4":{"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":2.1},"cvss_v3":null,"cwes":["CWE-416"],"references":["https://github.com/ohler55/oj/security/advisories/GHSA-9ppp-w3g4-fh4q","https://github.com/ohler55/oj/security/advisories/GHSA-9ppp-w3g4-fh4q"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-54897","score":0.00146,"percentile":0.03761,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9ppp-w3g4-fh4q","url":"https://osv.dev/vulnerability/GHSA-9ppp-w3g4-fh4q","summary":"Oj: Use-After-Free in Oj::Doc Iterators via Reentrant Close","modified":"2026-10-06T20:00:05.188085239Z","packages":[{"ecosystem":"RubyGems","name":"oj","purl":"pkg:gem/oj","ranges":["<3.17.3"],"fixed":["3.17.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}