Heap Corruption Vulnerability in Oj Ruby Gem by Ohler55
CVE-2026-54900
Key Information:
Badges
What is CVE-2026-54900?
The Oj Ruby gem, a JSON parser and object marshaller, is susceptible to a heap corruption issue when using create_id enabled with JSON object keys of exactly 65,535 bytes. This flaw arises from an integer truncation during the parsing process, leading to a negative-size argument being passed to the memcpy function. Consequently, this results in an attempt to copy an excessive amount of memory, potentially corrupting the heap and causing crashes. The vulnerability is addressed in version 3.17.2 of the Oj gem.
Affected Version(s)
oj < 3.17.2
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
