# CVE-2026-54903: Oj: Integer Overflow in Oj.load 2GB String Handling

- 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-54903, DEBIAN-CVE-2026-54903, CGA-2jw6-pxj7-p4xj, CGA-5x87-7522-88q6, CGA-68rx-h5xp-vxrm, CGA-7wwp-9fv7-2jh2, CGA-82mh-wvrq-j76x, CGA-8h66-27fr-7wjq, CGA-9cg6-9gh4-fhfp, CGA-9qrv-4q89-93g3, CGA-cf3m-r4v2-7cr6, CGA-gxpj-8f22-r2vr, CGA-hhf3-rxwr-v47f, CGA-hp59-3qgp-cc54, CGA-m43j-37fg-6qv8, CGA-vp2x-q4mx-845w, CGA-w6rm-vgmg-h853, CGA-x6hp-r435-f9jw, CGA-3wjv-6hfc-vh78, CGA-3wq4-hhp5-6mwm, CGA-46xp-qpm8-7px3, CGA-4fhf-4grf-969h, CGA-4hmq-q579-h7hx, CGA-552r-f69x-g5wr, CGA-5vfm-693j-6jx4, CGA-6hrf-548j-mgqp, CGA-6jjv-ffm3-77rj, CGA-6m4p-6r93-fh37, CGA-6w25-97g6-84g8, CGA-6xwj-669j-ggwm, CGA-74mx-5q2j-386x, CGA-7572-mwmr-2c38, CGA-796v-h3c9-5rj7, CGA-7hgf-f95r-5c5w, CGA-7wjj-gm8h-2p5v, CGA-92v9-jx74-fgg2, CGA-9774-hph8-3vhp, CGA-98fg-j8vr-8q82, CGA-9gvj-v7g3-rc9v, CGA-9h43-mr96-pw94, CGA-c6f9-2f86-7rjv, CGA-c9j3-c73m-vcq2, CGA-cv8h-vwhw-qghw, CGA-fh2c-v7p9-pvwp, CGA-g2hc-r7q8-7g9j, CGA-h5rg-9q36-j62v, CGA-h7c4-pc9j-64g5, CGA-hm2x-5c9f-qgvc, CGA-hpwp-r9rg-p68c, CGA-hqxj-hgpm-vvj5, CGA-hx25-jcq2-g24w, CGA-jcm3-6phc-pmqf, CGA-jj4g-6p2v-5587, CGA-m3vq-q2x8-5vwr, CGA-mqj2-w2xp-f46p, CGA-p544-4pg4-98cj, CGA-pj45-7php-49cv, GHSA-475m-ph3x-64gp, CGA-q892-7p7h-f5wq, CGA-qchv-8p3g-w5c4, CGA-r8g6-9587-wjfw, CGA-rwxm-r236-5vg6, CGA-x244-pffx-73mx
- Record: https://cvemate.com/vulnerability/CVE-2026-54903 · JSON: https://cvemate.com/vulnerability/CVE-2026-54903/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.load is vulnerable to heap corruption when parsing a JSON string longer than 2 GB. An integer overflow in buf_append_string (buf.h:61) converts the string length to a large negative size_t, causing memcpy to copy an astronomically large amount of data out of bounds. This crashes the process and can corrupt adjacent heap memory. The 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.048%, 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-475m-ph3x-64gp>
- <https://ubuntu.com/security/CVE-2026-54903>
- <https://www.cve.org/CVERecord?id=CVE-2026-54903>
- <https://security-tracker.debian.org/tracker/CVE-2026-54903>
- <https://github.com/ohler55/oj>

---

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