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-54898: CWE-416: Use After Free in ohler55 oj

0
Low
VulnerabilityCVE-2026-54898gcvecve-2026-54898cwe-416
Published: 06/30/2026 (06/30/2026, 23:24:23 UTC)
Source: GCVE Database
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 contain a use-after-free vulnerability in the Oj::Parser#parse method when a SAJ/SAJ2 callback mutates the input JSON string during parsing. This occurs because the C parser holds a raw pointer to the Ruby string's internal buffer, which can be reallocated and freed if the string is resized during a callback. The issue has been fixed in version 3.17.2.

CVSS v4.0

Score 2.1low

Attack Vector
Local
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:L/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, 01:37:28 UTC

Technical Analysis

CVE-2026-54898 is a use-after-free vulnerability in the Oj Ruby gem's C parser engine. When a SAJ/SAJ2 callback mutates the input JSON string during parsing, such as by resizing it with String#replace, the Ruby string buffer may be reallocated and the old buffer freed. The parser's raw pointer then becomes dangling, leading to a use-after-free condition at parser.c:607. This vulnerability affects all versions prior to 3.17.2 and has been resolved in 3.17.2.

Potential Impact

The vulnerability could lead to a heap use-after-free condition during JSON parsing if the input string is mutated in a callback. This may cause undefined behavior, including potential crashes or memory corruption. The CVSS 4.0 score is 2.1 (low severity), indicating limited impact and requiring local access with low complexity to exploit.

Mitigation Recommendations

Upgrade to version 3.17.2 or later, where this use-after-free vulnerability has been fixed. No other mitigation is 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
Gcve Source
db.gcve.eu

Threat ID: 6a446e6e27e9c79719c5090b

Added to database: 07/01/2026, 01:33:34 UTC

Last enriched: 07/01/2026, 01:37:28 UTC

Last updated: 07/01/2026, 01:51:17 UTC

Views: 3

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