USN-9518-1: Oj vulnerabilities

Publication date

3 December 2026

Overview

Several security issues were fixed in Oj.


Packages

  • ruby-oj - fast JSON parser and serializer for Ruby

Details

It was discovered that Oj incorrectly handled parsing JSON objects with
very long keys in object mode. An attacker could possibly use this issue to
obtain sensitive information. This issue only affected Ubuntu 22.04 LTS,
Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-54500)

It was discovered that Oj incorrectly handled large indent values when
dumping data. An attacker could possibly use this issue to cause Oj to
crash, resulting in a denial of service, or possibly execute arbitrary
code. (CVE-2026-54502)

It was discovered that Oj incorrectly handled deeply nested JSON documents
when iterating over them recursively. An attacker could possibly use this
issue to cause Oj to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2026-54592)

It was discovered that Oj incorrectly...

It was discovered that Oj incorrectly handled parsing JSON objects with
very long keys in object mode. An attacker could possibly use this issue to
obtain sensitive information. This issue only affected Ubuntu 22.04 LTS,
Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-54500)

It was discovered that Oj incorrectly handled large indent values when
dumping data. An attacker could possibly use this issue to cause Oj to
crash, resulting in a denial of service, or possibly execute arbitrary
code. (CVE-2026-54502)

It was discovered that Oj incorrectly handled deeply nested JSON documents
when iterating over them recursively. An attacker could possibly use this
issue to cause Oj to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2026-54592)

It was discovered that Oj incorrectly handled large indent values when
serializing exception objects. An attacker could possibly use this issue to
cause Oj to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2026-54896)

It was discovered that Oj incorrectly handled closing a document while
iterating over it. An attacker could possibly use this issue to cause Oj to
crash, resulting in a denial of service, or possibly execute arbitrary
code. (CVE-2026-54897)

It was discovered that Oj incorrectly handled input strings modified by
parser callbacks. An attacker could possibly use this issue to cause Oj to
crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and
Ubuntu 26.04 LTS. (CVE-2026-54898)

It was discovered that Oj incorrectly handled changing parser options on a
reused parser. An attacker could possibly use this issue to cause Oj to
crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and
Ubuntu 26.04 LTS. (CVE-2026-54899)

It was discovered that Oj incorrectly handled certain very long JSON object
keys. An attacker could possibly use this issue to cause Oj to crash,
resulting in a denial of service, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04
LTS. (CVE-2026-54900)

It was discovered that Oj incorrectly managed memory for certain parser
classes. An attacker could possibly use this issue to cause Oj to crash,
resulting in a denial of service. This issue only affected Ubuntu 22.04
LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-54901)

It was discovered that Oj incorrectly managed memory for cached object
keys. An attacker could possibly use this issue to cause Oj to crash,
resulting in a denial of service, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04
LTS. (CVE-2026-54902)

It was discovered that Oj incorrectly handled parsing very large JSON
strings. An attacker could possibly use this issue to cause Oj to crash,
resulting in a denial of service. (CVE-2026-54903)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
26.04 LTS resolute ruby-oj –  3.16.15-1ubuntu0.1~esm1  
24.04 LTS noble ruby-oj –  3.16.3-1+deb13u1build0.24.04.1
22.04 LTS jammy ruby-oj –  3.13.9-1ubuntu0.1~esm1  
20.04 LTS focal ruby-oj –  3.10.1-1ubuntu0.1~esm1  
18.04 LTS bionic ruby-oj –  3.4.0-1ubuntu0.1~esm1  
16.04 LTS xenial ruby-oj –  2.12.10-4ubuntu0.1~esm1
14.04 LTS trusty ruby-oj –  2.5.3-1ubuntu0.1~esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›