CVE-2026-54500: ohler55 oj Out-of-bounds Read
Vulnerability summary
CVE-2026-54500 is a medium (CVSS 5.3) Out-of-bounds Read vulnerability in ohler55 oj. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 8.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 30-06-2026PublishedVulnerability first disclosed.
- 01-07-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · RubygemsEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
9%
Versus all other CVEs
30-day change
0.00 pp
From 0.20% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard28 products
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-18.5All versions (No fix recorded)
- gitlab-rails-ce-18.6All versions (No fix recorded)
- gitlab-rails-ce-18.7All versions (No fix recorded)
- gitlab-rails-ce-18.8All versions (No fix recorded)
Wolfi6 products
- ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.2.1.1-r5
- ruby3.2-kube-logging-operator-fluentd-outputs< 6.7.0-r4
- ruby3.3-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.3.1.0-r0
- ruby3.4-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.3.1.0-r0
- ruby3.4-kube-logging-operator-fluentd-outputs< 6.7.0-r4
Debian1 product
- ruby-oj< 3.14.2-1+deb12u1 | < 3.16.3-1+deb13u1 | < 3.17.3-1
Ohler551 product
- oj< 3.17.3
RubyGems1 product
- oj< 3.17.3
Ubuntu1 product
- ruby-ojAll versions (No fix recorded)
6 vendors · 38 products
References
7 links- github.com/ohler55/ojPACKAGE