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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-30 · Modified: 2026-07-01
- Aliases: UBUNTU-CVE-2026-54899, DEBIAN-CVE-2026-54899, CGA-2jg8-6583-68xh, CGA-6m84-72fc-cm4g, CGA-6qfm-672p-fc64, CGA-9fgq-rvxc-727v, CGA-ch2j-wh3w-wfch, CGA-ff53-jrj7-fq32, CGA-gjfh-vr4r-5j45, CGA-hghj-gcqq-8mp8, CGA-hr55-9rmp-8478, CGA-jh9p-42w8-3qmj, CGA-jhm6-fpr4-r383, CGA-m45f-xg59-mjq6, CGA-p4m5-q72j-999q, CGA-qchf-2ch9-6cf7, CGA-qj83-3crm-rhgg, CGA-vcqj-hjph-5w7r, CGA-262g-6jm4-4h2m, CGA-2g36-qcx7-68gf, CGA-2g9j-wrvj-hqr4, CGA-2phf-c9m7-hcc6, CGA-3f5j-8jvg-c8qm, CGA-3w7w-4xx8-xfpq, CGA-4gvx-vh5p-g3jc, CGA-4w3w-g94w-wv2c, CGA-55pj-p5f7-cv24, CGA-5c23-gfcm-wr6r, CGA-5h96-c9vj-9pc2, CGA-6564-w48x-28gw, CGA-6w39-8w8m-5xv3, CGA-72c3-qpqh-frgf, CGA-8cwf-mcw6-3v9w, CGA-96f7-8qv5-4rf8, CGA-c48f-6m9c-g5q3, CGA-c6jf-58q9-f645, CGA-cwp4-pr9r-r26q, CGA-cx6r-4m87-qxq4, CGA-f45j-qpwq-vm52, CGA-f5c7-5527-px3x, CGA-f8cg-855h-7pmr, CGA-ff5h-jv3h-j9cv, CGA-fg9g-wf3f-2hf5, CGA-fw4j-53wx-7vf7, CGA-g6h6-9jm7-gq6h, CGA-ghrm-xpc9-96qv, CGA-j932-34w8-v93q, CGA-p75j-qxj7-cw4c, CGA-pc26-hqm7-5hw5, CGA-ppf3-qwcj-hm9j, GHSA-2cw7-v8ff-p88r, CGA-q2qj-939j-4x3j, CGA-qc76-xv33-cc7f, CGA-qcjg-qw55-6c9f, CGA-qm92-x4qr-8f7x, CGA-rpqq-vprc-m56f, CGA-rwg4-r5h7-qhrc, CGA-v6j8-xxwr-h76x, CGA-vh67-3cmf-xwrp, CGA-w98m-vhqg-wg7f, CGA-ww6r-wx59-h534, CGA-xpfx-xhj2-fc4w, CGA-xwpf-xp8m-j3fc
- Record: https://cvemate.com/vulnerability/CVE-2026-54899 · JSON: https://cvemate.com/vulnerability/CVE-2026-54899/json

## 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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.407%, percentile 37.049%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 38)

- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)
- chainguard ruby3.2-fluentd-kubernetes-daemonset-1.16-kinesis (Chainguard): \< 1.16.11.1.0-r3
- chainguard ruby3.2-fluentd-kubernetes-daemonset-1.17-kinesis (Chainguard): \< 1.17.1.1.2-r10
- chainguard ruby3.2-fluentd-kubernetes-daemonset-1.18-kinesis (Chainguard): \< 1.18.0.1.5-r3
- chainguard ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesis (Chainguard): \< 1.19.2.1.1-r5
- chainguard ruby3.2-kube-logging-operator-fluentd-outputs (Chainguard): \< 6.7.0-r4
- chainguard ruby3.3-fluentd-kubernetes-daemonset-1.16-kinesis (Chainguard): \< 1.16.11.1.0-r3
- chainguard ruby3.3-fluentd-kubernetes-daemonset-1.17-kinesis (Chainguard): \< 1.17.1.1.2-r9
- chainguard ruby3.3-fluentd-kubernetes-daemonset-1.18-kinesis (Chainguard): \< 1.18.0.1.5-r4

## References

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

---

Data as of 2026-12-05T04:19:58.225Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
