Ruby oj Gem < 3.17.3 Multiple Vulnerabilities

high Nessus Plugin ID 333328

Synopsis

The remote host has a module installed that is affected by multiple vulnerabilities.

Description

The version of the oj Ruby gem installed on the remote host is prior to 3.17.3. It is, therefore, affected by multiple vulnerabilities:

- Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. (CVE-2026-54592)

- Oj.load in :object mode reads uninitialized stack memory (and, for long keys, reads out of bounds) when parsing a JSON object whose key is 254 bytes or longer. The interned bytes can surface to the caller, disclosing process stack memory. (CVE-2026-54500)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to oj version 3.17.3 or later.

See Also

https://github.com/ohler55/oj/security/advisories/GHSA-3m6q-jj5j-38c9

https://github.com/ohler55/oj/security/advisories/GHSA-fm7p-mprw-wjm9

Plugin Details

Severity: High

ID: 333328

File Name: ruby_gem_oj_3_17_3.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 8/7/2026

Updated: 8/7/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.72

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2026-54592

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Vulnerability Information

CPE: cpe:/a:ohler55:oj

Required KB Items: Host/ruby/modules/enumerated

Patch Publication Date: 6/16/2026

Vulnerability Publication Date: 6/16/2026

Reference Information

CVE: CVE-2026-54500, CVE-2026-54592

CWE: 125

IAVB: 2026-B-0222