oj Known Vulnerabilities & Fixes
oj has 11 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 3.17.3 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 3.17.3
Upgrading to 3.17.3 or later resolves all 11 known vulnerabilities in oj. Run: gem install oj -v 3.17.3
Is oj in your project?
Check if you're affected and upgrade to 3.17.3 to stay secure.
Security Summary
- 11 affected version ranges have been identified across these 11 advisories.
- 100% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for oj: 0.5%.
- Remediation: gem update oj
Vulnerabilities
11 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details.
| CVE / GHSA | Severity |
|---|---|
| CVE-2026-54592 Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input
| HIGH |
| CVE-2026-54903 Oj: Integer Overflow in Oj.load 2GB String Handling
| HIGH |
| CVE-2026-54902 Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback
| HIGH |
| CVE-2026-54901 Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking
| HIGH |
| CVE-2026-54900 Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling
| HIGH |
| CVE-2026-54899 Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle
| HIGH |
| CVE-2026-54502 Oj: Stack Buffer Overflow in Oj.dump via Large Indent
| HIGH |
| CVE-2026-54500 Oj: intern.c form_attr (uninitialized stack read)
| MEDIUM |
| CVE-2026-54898 Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation
| HIGH |
| CVE-2026-54897 Oj: Use-After-Free in Oj::Doc Iterators via Reentrant Close
| HIGH |
| CVE-2026-54896 Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent
| HIGH |
About This Data
Vulnerability data for oj is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related RubyGems (Ruby) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of oj.