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-54592: CWE-125: Out-of-bounds Read in ohler55 oj

0
High
VulnerabilityCVE-2026-54592gcvecve-2026-54592cwe-125cwe-787
Published: 06/30/2026 (06/30/2026, 23:16:24 UTC)
Source: GCVE Database
Vendor/Project: ohler55
Product: oj

Description

Oj (Optimized JSON) is a Ruby gem JSON parser vulnerable to an out-of-bounds read in versions prior to 3.17.3. The vulnerability occurs in the Oj::Doc#each_child method when recursively processing deeply nested JSON documents, causing a fixed-size stack buffer overflow and process abort (DoS). This is due to missing bounds checks and improper stack pointer restoration during recursion. The issue has been fixed in version 3.17.3.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

oj
pkg:gem/oj
Affected versions
<3.17.3

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:36:17 UTC

Technical Analysis

CVE-2026-54592 affects the ohler55 oj Ruby gem JSON parser in versions before 3.17.3. The vulnerability arises from Oj::Doc#each_child recursively iterating over deeply nested JSON without enforcing nesting limits. Internally, the doc->where pointer is incremented beyond the fixed-size where_path[MAX_STACK=100] array without bounds checking and is never decremented, leading to an out-of-bounds read. This causes a memcpy operation to overflow an 800-byte stack buffer (save_path[MAX_STACK]) resulting in process abort and denial of service. The root cause is the missing doc->where-- decrement and lack of nesting depth limit enforcement. The vendor fixed this issue in version 3.17.3.

Potential Impact

An attacker can craft deeply nested JSON input that triggers a stack buffer overflow in the Oj::Doc#each_child method, causing the parser process to abort and resulting in a denial of service (DoS). There is no indication of confidentiality or integrity impact. The CVSS 3.1 base score is 7.5 (High) with network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability.

Mitigation Recommendations

Upgrade to version 3.17.3 or later where this vulnerability is fixed. Patch status is confirmed by the vendor advisory stating the issue is resolved in 3.17.3. 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-15T19:45:23.539Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Gcve Source
db.gcve.eu

Threat ID: 6a446e6e27e9c79719c50914

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

Last enriched: 07/01/2026, 01:36:17 UTC

Last updated: 07/01/2026, 01:51:13 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