CVE-2026-54898
Last modified
CVE-2026-54898 is a low-severity vulnerability rated 2.1/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::Parser#parse is vulnerable to a heap use-after-free when a SAJ/SAJ2 callback mutates the input JSON string during parsing. EPSS estimates a 0.12% 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::Parser#parse is vulnerable to a heap use-after-free when a SAJ/SAJ2 callback mutates the input JSON string during parsing. The C engine holds a raw const byte * pointer into the Ruby string's internal buffer. If a callback (e.g. hash_start) resizes the string — for example by calling String#replace with a longer value — Ruby reallocates the string buffer and frees the old one. The C parser's pointer is left dangling; the next character read at parser.c:607 is a use-after-free. This issue has been fixed in version 3.17.2.
Metrics
CVSS:4.0/AV:L/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-54898?
How severe is CVE-2026-54898?
How do I fix CVE-2026-54898?
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-54891Improper Enforcement of Message Integrity During Transmissio…3.7
- CVE-2026-54892Inefficient algorithmic complexity in Plug's nested-paramete…8.7
- CVE-2026-54893URL path injection in the Microsoft Graph adapter of Swoosh.…2.1
- CVE-2026-54894Allocation of Resources Without Limits or Throttling in uebe…7.5
- CVE-2026-54896Oj (Optimized JSON) is a JSON parser and Object marshaller p…2.1
- CVE-2026-54897Oj (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-54902Oj (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
Are you affected by CVE-2026-54898?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
