{"cve":"CVE-2026-54896","nvd":{"published":"2026-07-01T00:16:32.867","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, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjacent heap memory. 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-122"],"references":["https://github.com/ohler55/oj/security/advisories/GHSA-35w3-pjm6-wj95","https://github.com/ohler55/oj/security/advisories/GHSA-35w3-pjm6-wj95"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-54896","score":0.00148,"percentile":0.03943,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-35w3-pjm6-wj95","url":"https://osv.dev/vulnerability/GHSA-35w3-pjm6-wj95","summary":"Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent","modified":"2026-09-10T03:51:07.700603026Z","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."]}