SCA: security update for oj (GHSA-3v45-f3vh-wg7m)

medium Tenable Cloud Security Plugin ID 443645

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to
3.17.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by
the developer. fill_indent in dump.h calls memset(indent_str, ' ', (size_t)opts->indent) without
validating the size. When opts->indent is set to INT_MAX (2,147,483,647), the (size_t) cast preserves the
large value and memset writes 2 GB into the stack-allocated out buffer (4,184 bytes), corrupting the stack
and crashing the process. This issue has been fixed in version 3.17.2. (CVE-2026-54502)

Solution

Update the oj library and its related packages to version 3.17.3 or later.

See Also

https://github.com/advisories/GHSA-3v45-f3vh-wg7m

Plugin Details

Severity: Medium

ID: 443645

Version: Revision 1.3

Type: Local

Family: SCA Checks

Published: 6/20/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.96

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-54502

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/19/2026

Vulnerability Publication Date: 6/19/2026

Reference Information

CVE: CVE-2026-54502

cwe: CWE-121