CVE-2026-54900: CWE-190: Integer Overflow or Wraparound in ohler55 oj
Oj (Optimized JSON) is a Ruby gem for JSON parsing and object marshalling. Versions prior to 3.17.2 contain an integer overflow vulnerability in the usual mode with create_id enabled. Specifically, when a JSON object key is exactly 65,535 bytes long, an integer truncation causes a negative size to be passed to memcpy, resulting in heap corruption and process crash. This issue is fixed in version 3.17.2.
AI Analysis
Technical Summary
CVE-2026-54900 is an integer overflow or wraparound vulnerability in the ohler55 oj Ruby gem before version 3.17.2. When parsing JSON in usual mode with create_id enabled, a JSON object key of length 65,535 bytes triggers an integer truncation in form_attr (usual.c:63), converting the length to -1. This negative value is passed to memcpy, which interprets it as a very large size_t (SIZE_MAX), causing a heap corruption and crashing the process. The vulnerability is resolved in version 3.17.2.
Potential Impact
Exploitation of this vulnerability leads to heap corruption and a crash of the process using the vulnerable oj gem. This can cause denial of service. There is no indication of code execution or data disclosure from the provided data.
Mitigation Recommendations
Upgrade oj to version 3.17.2 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated.
CVE-2026-54900: CWE-190: Integer Overflow or Wraparound in ohler55 oj
Description
Oj (Optimized JSON) is a Ruby gem for JSON parsing and object marshalling. Versions prior to 3.17.2 contain an integer overflow vulnerability in the usual mode with create_id enabled. Specifically, when a JSON object key is exactly 65,535 bytes long, an integer truncation causes a negative size to be passed to memcpy, resulting in heap corruption and process crash. This issue is fixed in version 3.17.2.
CVSS v4.0
Score 6.3medium
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-54900 is an integer overflow or wraparound vulnerability in the ohler55 oj Ruby gem before version 3.17.2. When parsing JSON in usual mode with create_id enabled, a JSON object key of length 65,535 bytes triggers an integer truncation in form_attr (usual.c:63), converting the length to -1. This negative value is passed to memcpy, which interprets it as a very large size_t (SIZE_MAX), causing a heap corruption and crashing the process. The vulnerability is resolved in version 3.17.2.
Potential Impact
Exploitation of this vulnerability leads to heap corruption and a crash of the process using the vulnerable oj gem. This can cause denial of service. There is no indication of code execution or data disclosure from the provided data.
Mitigation Recommendations
Upgrade oj to version 3.17.2 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated.
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: 6a446e6e27e9c79719c50908
Added to database: 07/01/2026, 01:33:34 UTC
Last enriched: 07/01/2026, 01:37:34 UTC
Last updated: 07/01/2026, 01:51:19 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.