# CVE-2026-54901: Oj: Use-After-Free in Oj::Parser array\_class/hash\_class GC Marking

- 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-54901, DEBIAN-CVE-2026-54901, CGA-23m3-49m6-qxcv, CGA-2jhp-575w-c5qh, CGA-3hc8-36cg-r2vf, CGA-46pp-7955-jq7f, CGA-49mp-rh45-32g5, CGA-7p6r-x7fj-wc7r, CGA-7wj9-c9h2-hqqc, CGA-8fwj-xqff-26vr, CGA-9mmw-9mcv-96xv, CGA-cmw7-xq2j-95f8, CGA-cwv8-qwx4-x9h3, CGA-g7jg-jrpg-5j2w, CGA-gxcw-mffm-9q6v, CGA-j37q-qgr9-r528, CGA-mwg3-jfcr-mmwr, CGA-q443-rx5w-vfxh, CGA-2p3m-m4gr-3476, CGA-2w7j-x247-wm6g, CGA-3h7c-h7qx-9rq3, CGA-3p42-3jvr-jwfc, CGA-4x2w-m94q-8hqr, CGA-54h4-pmx6-3pxj, CGA-58rx-c4qm-6cvw, CGA-5j99-7jcx-737x, CGA-5r9h-7m79-rfjm, CGA-5rgj-3j2q-8696, CGA-5w9r-rq4v-6q9p, CGA-6gc2-2pf2-c265, CGA-6j5m-q7jx-57cw, CGA-6vj5-7vfr-8p8p, CGA-7qxf-pqqg-q2hc, CGA-8wjm-qcx8-x3rw, CGA-9cfr-c8h5-cgpj, CGA-cf4v-xvm5-c8cf, CGA-cq3j-fg3v-wjj5, CGA-f4pc-vrj3-2m4g, CGA-fmq2-3rmq-663m, CGA-fpc9-vgmm-6hf2, CGA-fpcv-pq49-4mm4, CGA-fqh2-225q-m9m7, CGA-fw8w-rqxw-x653, CGA-g272-52v4-8p83, CGA-g5v3-fr5g-h8rh, CGA-gv7v-r83q-3hv8, CGA-hfg8-7w98-r87q, CGA-hq85-2r45-4mhm, CGA-j5w4-39qj-f7j8, CGA-j7xc-329c-79vw, CGA-jx7p-pmqh-jvfp, CGA-mf22-gq9r-vmqr, CGA-mh77-v3v8-jxch, CGA-mpf9-9xgq-whxf, GHSA-vwm4-62gf-x745, CGA-qcqw-7m3j-rw73, CGA-rcpp-v79v-r6gw, CGA-rqq5-wjfm-p3f3, CGA-v2pf-c56p-cp23, CGA-v3hf-qxvf-6p33, CGA-w877-7583-7wxg, CGA-wcvc-2gq8-vv95, CGA-x964-5mc3-6c65
- Record: https://cvemate.com/vulnerability/CVE-2026-54901 · JSON: https://cvemate.com/vulnerability/CVE-2026-54901/json

## Description

```text
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj::Parser in usual mode does not mark array_class and hash_class references during garbage collection, leading to Use-After-Free. If GC runs after the class is assigned but before a parse, the class object is reclaimed, leaving the parser holding a dangling VALUE. The subsequent parse call dereferences the freed object, producing a segfault. 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:N/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-vwm4-62gf-x745>
- <https://ubuntu.com/security/CVE-2026-54901>
- <https://www.cve.org/CVERecord?id=CVE-2026-54901>
- <https://security-tracker.debian.org/tracker/CVE-2026-54901>
- <https://github.com/ohler55/oj>

---

Data as of 2026-12-05T03:44:13.240Z. 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
