CVE-2026-54502
Last modified
CVE-2026-54502 is a medium-severity vulnerability rated 6.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.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by the developer. EPSS estimates a 0.26% 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.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by the developer. fill_indent in dump.h calls memset(indent_str, ' ', (size_t)opts->indent) without validating the size. When opts->indent is set to INT_MAX (2,147,483,647), the (size_t) cast preserves the large value and memset writes 2 GB into the stack-allocated out buffer (4,184 bytes), corrupting the stack and crashing the process. This issue has been fixed in version 3.17.2.
Metrics
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ohler55 | oj | < 3.17.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-54502?
How severe is CVE-2026-54502?
How do I fix CVE-2026-54502?
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-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-54500Oj (Optimized JSON) is a JSON parser and Object marshaller p…5.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
- CVE-2026-54516jackson-databind contains the general-purpose data-binding f…5.3
Are you affected by CVE-2026-54502?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
