# CVE-2026-54896: Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent

- Priority: **Routine**
- Reason: Not severe (CVSS 2.1, local 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-54896, DEBIAN-CVE-2026-54896, CGA-32qq-r2r5-r9xx, CGA-6mff-wxj6-x9m4, CGA-6pp6-6vp5-5hvc, CGA-8w34-v86c-hpmq, CGA-934v-rr8w-w94h, CGA-cvxx-m34c-xqh7, CGA-f226-8f65-5252, CGA-f7hc-v752-8vrq, CGA-g27h-pphc-x897, CGA-g5g3-j8xr-cr45, CGA-h8x4-f25f-33gj, CGA-jx9h-7c3f-w6cq, CGA-p9r4-hfvj-7wmx, CGA-r7vr-v2q9-jwvv, CGA-rvvg-jpxq-g9x5, CGA-vwc4-vhrh-f677, CGA-3mp9-567p-4jh8, CGA-3v8q-9c7m-fgvf, CGA-442j-4jch-5v68, CGA-5649-wr59-p2pq, CGA-56hh-h9qh-6v87, CGA-597p-4p4c-492v, CGA-59gv-8g3v-p366, CGA-5c4r-475h-456f, CGA-5c99-xrvv-mc4f, CGA-5grg-q64v-cwf4, CGA-5rvr-vmxh-3328, CGA-62jr-5hww-wprg, CGA-67r4-3652-hj2p, CGA-6p93-w9fx-543v, CGA-7972-hmc8-h56w, CGA-7cwf-86q2-h2wc, CGA-7j2h-gmvr-hcw6, CGA-8gc7-4w97-g2r9, CGA-8m87-337v-883x, CGA-8pr2-r5j9-3w6h, CGA-99v5-hr96-2jxp, CGA-9h9r-7cjr-3mcj, CGA-9rq5-m29v-vg4h, CGA-c2jc-fj8h-62wg, CGA-f9fg-59g9-2rr8, CGA-hf59-hr9g-q9mq, CGA-j3v8-44fj-m894, CGA-j695-f92h-mp73, CGA-j83w-2388-8fr4, CGA-jmcc-7298-m97h, CGA-jpxf-w63x-2wgp, CGA-mm85-mjcm-gfxq, CGA-mw74-65v5-2xpg, CGA-ppqp-pwm7-gr29, GHSA-35w3-pjm6-wj95, CGA-qv5v-8f9f-2x8m, CGA-rp4w-mhq9-p3w3, CGA-vq26-6v6p-jvg5, CGA-w452-m84g-3vgg, CGA-w4g5-mpjq-f9gg, CGA-w68v-wjj5-3v6g, CGA-xc3c-cx28-4v3q, CGA-xcw3-x257-2gqg, CGA-xqq6-36fm-9jg5, CGA-xwxw-5w5h-r2qx
- Record: https://cvemate.com/vulnerability/CVE-2026-54896 · JSON: https://cvemate.com/vulnerability/CVE-2026-54896/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, 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.
```

## Signals

- CVSS: 2.1 low (v4.0, CVE.org) 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
- EPSS: 0.2%, percentile 10.424%, 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-35w3-pjm6-wj95>
- <https://ubuntu.com/security/CVE-2026-54896>
- <https://www.cve.org/CVERecord?id=CVE-2026-54896>
- <https://security-tracker.debian.org/tracker/CVE-2026-54896>
- <https://github.com/ohler55/oj>

---

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