SCA: security update for @openzeppelin/contracts, @openzeppelin/contracts-upgradeable (GHSA-9vx6-7xxf-x967)

high Tenable Self-Hosted Container Security Plugin ID 413484

Description

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

- OpenZeppelin Contracts is a library for secure smart contract development. The `Base64.encode` function
encodes a `bytes` input by iterating over it in chunks of 3 bytes. When this input is not a multiple of 3,
the last iteration may read parts of the memory that are beyond the input buffer. The vulnerability is
fixed in 5.0.2 and 4.9.6. (CVE-2024-27094)

Solution

Update the @openzeppelin/contracts library and its related packages to version 4.9.6 or later.

See Also

https://github.com/advisories/GHSA-9vx6-7xxf-x967

Plugin Details

Severity: High

ID: 413484

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.37

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.1

Temporal Score: 5.3

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

CVSS Score Source: CVE-2024-27094

CVSS v3

Risk Factor: High

Base Score: 7.4

Temporal Score: 6.4

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/29/2024

Vulnerability Publication Date: 2/29/2024

Reference Information

CVE: CVE-2024-27094

cwe: CWE-125