Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54901: CWE-416: Use After Free in ohler55 oj

0
Medium
VulnerabilityCVE-2026-54901cvecve-2026-54901cwe-416
Published: 06/30/2026 (06/30/2026, 23:36:38 UTC)
Source: CVE Database V5
Vendor/Project: ohler55
Product: oj

Description

Oj (Optimized JSON) is a Ruby gem for JSON parsing and object marshalling. Versions prior to 3.17.2 have a Use-After-Free vulnerability in Oj::Parser when running in usual mode. This occurs because array_class and hash_class references are not marked during garbage collection, potentially leading to a dangling pointer and a segmentation fault during parsing. The issue is fixed in version 3.17.2.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

oj
pkg:gem/oj
Affected versions
<3.17.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/01/2026, 00:21:59 UTC

Technical Analysis

CVE-2026-54901 is a Use-After-Free vulnerability (CWE-416) in the Oj Ruby gem versions before 3.17.2. The vulnerability arises because Oj::Parser does not mark array_class and hash_class references during garbage collection in usual mode. If garbage collection occurs after these classes are assigned but before a parse operation, the class objects may be reclaimed, leaving the parser with dangling VALUE pointers. Subsequent parse calls dereference these freed objects, causing segmentation faults. This issue has been addressed and fixed in version 3.17.2.

Potential Impact

Exploitation of this vulnerability can cause a segmentation fault in applications using vulnerable versions of the Oj gem, potentially leading to denial of service. There is no indication of code execution or data corruption beyond the crash. The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and limited impact to availability.

Mitigation Recommendations

Upgrade to Oj version 3.17.2 or later, where this Use-After-Free vulnerability is fixed. No other mitigations are indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-16T13:49:33.555Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a445a0927e9c7971999d89d

Added to database: 07/01/2026, 00:06:33 UTC

Last enriched: 07/01/2026, 00:21:59 UTC

Last updated: 07/01/2026, 00:21:59 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses