# CVE-2026-54500: Oj: intern.c form\_attr has an uninitialized stack read

- Priority: **Routine**
- Reason: Not severe (CVSS 5.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-54500, DEBIAN-CVE-2026-54500, CGA-2qhv-6577-fvf8, CGA-45mh-5cwc-j6m2, CGA-5mpm-5gg2-q45j, CGA-6h64-55gr-6cqg, CGA-9773-xhrr-r6pc, CGA-9vhv-2wrf-w7p8, CGA-cqch-4988-v75x, CGA-f7c6-vrfr-qhwp, CGA-jh8p-xm9c-mjfr, CGA-m68x-qr62-7xwm, CGA-m8r4-2fjw-w4q4, CGA-pchg-2375-f6fp, CGA-q67v-cmm5-v9qh, CGA-qwgv-p7hr-92q7, CGA-rj38-23w6-3fmh, CGA-v8vc-w77h-r9v7, CGA-22q8-r7rf-gf2c, CGA-2mrh-2c67-pqwr, CGA-2mrp-3ccj-gw4r, CGA-35vj-jmgr-jv2w, CGA-3xhx-h4p5-8pj8, CGA-4q27-pvr4-65hq, CGA-5jfg-r45x-249g, CGA-5vh5-5jv8-c4xr, CGA-642j-m6wf-f8mg, CGA-6rg3-m3j5-gvmj, CGA-7586-3w86-qpcq, CGA-79p9-jqhg-4mmx, CGA-7hvv-p7xv-hcxj, CGA-7wv3-rcgj-4rwh, CGA-9hj7-hq8x-x4vc, CGA-cjx8-xp4m-fhh9, CGA-cm4g-pg4h-xjr6, CGA-cmqc-x85m-x74g, CGA-cp9c-6xcx-g586, CGA-fx4q-cq29-f2cg, CGA-g2g4-w5c4-q9cm, CGA-g586-rxf9-2wh2, CGA-hhww-6p7g-32fw, CGA-hpwf-x872-j73j, CGA-j4rx-q2g8-wggv, CGA-p548-4v3x-xrxx, CGA-p5gm-ch9w-c37v, CGA-p62p-8fr4-8v68, GHSA-fm7p-mprw-wjm9, CGA-qh3v-jhw2-j8h7, CGA-qmr2-fqq6-vqc5, CGA-qph6-gqwc-pqhw, CGA-qrc5-x86v-3x2f, CGA-qw9x-ffvh-gjh4, CGA-r59m-rrfq-x593, CGA-rg8m-3gvq-5mh6, CGA-rr4v-3vg8-943q, CGA-rvmm-hcp3-5pf4, CGA-v2c3-2vp2-mhhq, CGA-wwj5-mqqf-9ff5, CGA-wxq7-8cpc-v3rg, CGA-x9jg-phx4-qf53, CGA-xfwh-c4qh-28qj, CGA-xq7w-7w46-2f77, CGA-xv5h-3246-3fh4
- Record: https://cvemate.com/vulnerability/CVE-2026-54500 · JSON: https://cvemate.com/vulnerability/CVE-2026-54500/json

## Description

```text
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj.load in :object mode reads uninitialized stack memory (and, for long keys, reads out of bounds) when parsing a JSON object whose key is 254 bytes or longer. The interned bytes can surface to the caller, disclosing process stack memory. In ext/oj/intern.c, form_attr() handles the long-key path by allocating a heap buffer, `b`, populating it with the attribute name, and then freeing it — but it passed the uninitialized stack buffer buf (not b) to rb_intern3(). rb_intern3 therefore reads len + 1 bytes of uninitialized stack memory. When the key length is >= 256, it also reads out of bounds past the 256-byte buf. The resulting bytes are interned and can reach the caller via the produced Symbol or via the EncodingError message raised on invalid UTF-8, leaking process stack contents. This issue has been fixed in version 3.17.3.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.198%, percentile 9.951%, 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-fm7p-mprw-wjm9>
- <https://ubuntu.com/security/CVE-2026-54500>
- <https://www.cve.org/CVERecord?id=CVE-2026-54500>
- <https://security-tracker.debian.org/tracker/CVE-2026-54500>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54500.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54500>
- <https://github.com/ohler55/oj>

---

Data as of 2026-12-05T04:18:44.966Z. 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
