CVE-2026-54897
Last modified
CVE-2026-54897 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. Prior to 3.17.2, Oj::Doc iterators (each_value, each_child, each_leaf) were vulnerable to a heap use-after-free. 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. Prior to 3.17.2, Oj::Doc iterators (each_value, each_child, each_leaf) were vulnerable to a heap use-after-free. When a Ruby block yielded during iteration calls doc.close or d.close, the document's heap memory is freed while the C iterator is still running. When control returns from the block, the iterator reads from the freed region, producing a use-after-free accessible from pure Ruby. 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-54897?
How severe is CVE-2026-54897?
How do I fix CVE-2026-54897?
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-54890Integer Underflow (Wrap or Wraparound) vulnerability in erla…7.5
- 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-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-54902Oj (Optimized JSON) is a JSON parser and Object marshaller p…6.3
Are you affected by CVE-2026-54897?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
