CVE-2026-54902
Last modified
CVE-2026-54902 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. Prior to version 3.17.2, is vulnerable to Use-After-Free when in SAJ mode. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, is vulnerable to Use-After-Free when in SAJ mode. The Oj::Parser does not protect cached object keys (≥ 35 bytes) from garbage collection, and a Ruby callback that triggers GC inside hash_end can cause the key string to be reclaimed while the C parser still holds a pointer to it. The subsequent access to the freed string VALUE results in a segfault, confirmed by an RIP pointing to address 0x4242 (a canary-style pattern suggesting control over the freed memory's content). 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-54902?
How severe is CVE-2026-54902?
How do I fix CVE-2026-54902?
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-54897Oj (Optimized JSON) is a JSON parser and Object marshaller p…2.1
- CVE-2026-54898Oj (Optimized JSON) is a JSON parser and Object marshaller p…2.1
- CVE-2026-54899Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
- CVE-2026-5490DriveLock SQL Injection Privilege Escalation Vulnerability. …8.8
- CVE-2026-54900Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
- CVE-2026-54901Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
- CVE-2026-54903Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
- CVE-2026-54904concurrent-ruby is a modern concurrency tools for Ruby. Prio…7.5
- CVE-2026-54905concurrent-ruby is a modern concurrency tools for Ruby. Prio…5.5
- CVE-2026-54906concurrent-ruby is a modern concurrency tools for Ruby. Prio…9.8
- CVE-2026-54908Pion DTLS is a Go implementation of Datagram Transport Layer…6.3
- CVE-2026-54909pion/stun is a Go implementation of STUN. Prior to 3.1.3, XO…5.3
Are you affected by CVE-2026-54902?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
