CVE-2026-54500
Last modified
CVE-2026-54500 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ohler55 | oj | < 3.17.3 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-54500?
How severe is CVE-2026-54500?
How do I fix CVE-2026-54500?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-54490websocket-driver is a WebSocket protocol handler with plugga…6.3
- CVE-2026-54496ZEBRA is a Zcash node written entirely in Rust. Prior to zeb…9.3
- CVE-2026-54497view_component is a framework for building reusable, testabl…6.8
- CVE-2026-54498view_component is a framework for building reusable, testabl…8.7
- CVE-2026-54499Stanza is a Stanford NLP Python library for tokenization, se…7.5
- CVE-2026-5450Calling the scanf family of functions with a %mc (malloc'd c…9.8
- CVE-2026-54502Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
- CVE-2026-5451The Extensions for Leaflet Map plugin for WordPress is vulne…6.4
- CVE-2026-54512jackson-databind contains the general-purpose data-binding f…8.1
- CVE-2026-54513jackson-databind contains the general-purpose data-binding f…8.1
- CVE-2026-54514jackson-databind contains the general-purpose data-binding f…5.3
- CVE-2026-54515jackson-databind contains the general-purpose data-binding f…5.3
Are you affected by CVE-2026-54500?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
