{"cve":"CVE-2026-54898","nvd":{"published":"2026-07-01T00:16:33.103","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. In versions prior to 3.17.2,Oj::Parser#parse is vulnerable to a heap use-after-free when a SAJ/SAJ2 callback mutates the input JSON string during parsing. The C engine holds a raw const byte * pointer into the Ruby string's internal buffer. If a callback (e.g. hash_start) resizes the string — for example by calling String#replace with a longer value — Ruby reallocates the string buffer and frees the old one. The C parser's pointer is left dangling; the next character read at parser.c:607 is a use-after-free. 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-q2gm-54r6-8fwm","https://github.com/ohler55/oj/security/advisories/GHSA-q2gm-54r6-8fwm"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-54898","score":0.00146,"percentile":0.03761,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-q2gm-54r6-8fwm","url":"https://osv.dev/vulnerability/GHSA-q2gm-54r6-8fwm","summary":"Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation","modified":"2026-09-10T03:51:09.344545084Z","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."]}