CVE-2026-54896

Description

A flaw was found in Oj (Optimized JSON), a Ruby gem used for processing JSON data. This vulnerability occurs when the software attempts to serialize (convert into a format for storage or transmission) Exception objects with a very large indentation setting. The internal process for handling this serialization does not properly manage memory, leading to a heap buffer overflow. This memory corruption could allow an attacker to disrupt the application, causing a denial of service, or potentially execute unauthorized code.

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

Want to get errata notifications? Sign up here.