CVE-2026-54592: CWE-125: Out-of-bounds Read in ohler55 oj
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.
AI Analysis
Technical Summary
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.
CVE-2026-54592: CWE-125: Out-of-bounds Read in ohler55 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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.