Oj : Use-After-Free in Oj::Doc Iterators via Reentrant Close
Published Jun 30, 2026
8.7
HIGHCVSS 4.0
EPSS 0.15%
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.
Affected products
-
- Version < 3.17.2StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat's only product shipping the Oj Ruby gem (Compliance Backend) already includes version 3.17.3, which contains the fix for this vulnerability. No Red Hat products are affected.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
2 other sources (GitHub, NVD) ▾
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
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
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jul 1, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
Jul–Oct 2026- EPSS v5
Percentile over time
- EPSS v5
Table of values (2 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.15% (0.00146) | 3.25th | v5 (v2026.06.15) |
| Jul 1, 2026 | 0.12% (0.00117) | 1.95th | v5 (v2026.06.15) |
References (6)
- https://access.redhat.com/security/cve/CVE-2026-54897 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2495790 Issue Tracking
- https://github.com/advisories/GHSA-9ppp-w3g4-fh4q Advisory
- https://github.com/ohler55/oj/security/advisories/GHSA-9ppp-w3g4-fh4q exploitx_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-54897
- https://www.cve.org/CVERecord?id=CVE-2026-54897
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-54897 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2495790 | Issue Tracking | |
| https://github.com/advisories/GHSA-9ppp-w3g4-fh4q | Advisory | |
| https://github.com/ohler55/oj/security/advisories/GHSA-9ppp-w3g4-fh4q | exploitx_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-54897 | ||
| https://www.cve.org/CVERecord?id=CVE-2026-54897 |
Change history (0)
No recorded changes yet.