# CVE-2026-54899: Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T19:34:30.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-2cw7-v8ff-p88r
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ohler55 oj: < 3.17.2
- oj (RubyGems): before 3.17.2

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/ohler55/oj/security/advisories/GHSA-2cw7-v8ff-p88r> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54899> (advisory)
- <https://github.com/ohler55/oj> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/oj/CVE-2026-54899.yml> (web)
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54899> (web)

## Sources

- CVE List: [CVE-2026-54899](https://www.cve.org/CVERecord?id=CVE-2026-54899), CVE Terms of Use, modified 2026-07-01
- GitHub Advisory Database: [GHSA-2cw7-v8ff-p88r](https://github.com/advisories/GHSA-2cw7-v8ff-p88r), CC-BY-4.0, modified 2026-10-06
- NVD: [CVE-2026-54899](https://nvd.nist.gov/vuln/detail/CVE-2026-54899), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54899 · Whole record: https://cve.day/CVE-2026-54899.json · Rebuilt by cve.day 2026-11-25T22:59:26.857Z
