CVE-2026-54903
Description
A flaw was found in Oj, an Optimized JSON (JavaScript Object Notation) parser for Ruby. This vulnerability allows a remote attacker to cause heap corruption and a denial of service (DoS) by providing a JSON string larger than 2 gigabytes (GB). An integer overflow occurs when processing the string length, leading to out-of-bounds memory access and a process crash. This issue could also potentially corrupt adjacent heap memory.
Statement
Red Hat's only product shipping the Oj Ruby gem (Compliance Backend) already includes version 3.17.3, which contains the fix for this vulnerability. No Red Hat products are affected.
Understanding the Weakness (CWE)
Integrity
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other
Technical Impact: Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.