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

0
Medium
VulnerabilityCVE-2026-54500gcvecve-2026-54500cwe-125cwe-908
Published: 06/30/2026 (06/30/2026, 23:08:28 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.3 contain an out-of-bounds read vulnerability in the Oj.load function when parsing JSON objects with keys 254 bytes or longer. This flaw causes uninitialized stack memory to be read and potentially disclosed to the caller via interned symbols or error messages. The issue has been fixed in version 3.17.3.

CVSS v3.1

Score 5.3medium

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

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:37:07 UTC

Technical Analysis

CVE-2026-54500 is an out-of-bounds read vulnerability in the Oj Ruby gem (versions before 3.17.3). The vulnerability occurs in the ext/oj/intern.c file, specifically in the form_attr() function. When parsing JSON objects with keys of length 254 bytes or more, Oj.load in :object mode reads uninitialized stack memory and, for keys 256 bytes or longer, reads beyond the allocated buffer. This happens because the function incorrectly passes an uninitialized stack buffer to rb_intern3(), which reads len + 1 bytes, causing leakage of stack memory contents. These leaked bytes can be exposed to the caller through the resulting Symbol or an EncodingError message triggered by invalid UTF-8 sequences. The vulnerability is addressed by updating to version 3.17.3.

Potential Impact

An attacker can craft JSON input with very long keys (254 bytes or more) that causes Oj.load to read and disclose uninitialized stack memory contents. This memory disclosure can leak sensitive process stack data to the caller, potentially exposing information useful for further attacks. The vulnerability does not affect integrity or availability but impacts confidentiality. The CVSS v3.1 score is 5.3 (medium severity), reflecting a network attack vector with low complexity and no privileges or user interaction required.

Mitigation Recommendations

Upgrade Oj to version 3.17.3 or later, where this vulnerability is fixed. No other official remediation or temporary fix is documented. Patch status is not explicitly stated beyond the fixed version, so users should verify with the vendor advisory for any updates. Until patched, avoid parsing JSON objects with keys 254 bytes or longer if possible.

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-15T18:01:15.511Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Gcve Source
db.gcve.eu

Threat ID: 6a446e6e27e9c79719c5091a

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

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

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