SCA: security update for @openzeppelin/contracts, @openzeppelin/contracts-upgradeable (GHSA-wprv-93r4-jj2p)

medium Tenable Self-Hosted Container Security Plugin ID 420050

Description

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

- OpenZeppelin Contracts is a library for smart contract development. Starting in version 4.7.0 and prior to
version 4.9.2, when the `verifyMultiProof`, `verifyMultiProofCalldata`, `procesprocessMultiProof`, or
`processMultiProofCalldat` functions are in use, it is possible to construct merkle trees that allow
forging a valid multiproof for an arbitrary set of leaves. A contract may be vulnerable if it uses
multiproofs for verification and the merkle tree that is processed includes a node with value 0 at depth 1
(just under the root). This could happen inadvertedly for balanced trees with 3 leaves or less, if the
leaves are not hashed. This could happen deliberately if a malicious tree builder includes such a node in
the tree. A contract is not vulnerable if it uses single-leaf proving (`verify`, `verifyCalldata`,
`processProof`, or `processProofCalldata`), or if it uses multiproofs with a known tree that has hashed
leaves. Standard merkle trees produced or validated with the @openzeppelin/merkle-tree library are safe.
The problem has been patched in version 4.9.2. Some workarounds are available. For those using
multiproofs: When constructing merkle trees hash the leaves and do not insert empty nodes in your trees.
Using the @openzeppelin/merkle-tree package eliminates this issue. Do not accept user-provided merkle
roots without reconstructing at least the first level of the tree. Verify the merkle tree structure by
reconstructing it from the leaves. (CVE-2023-34459)

See Also

https://github.com/advisories/GHSA-wprv-93r4-jj2p

Plugin Details

Severity: Medium

ID: 420050

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: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4

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

CVSS Score Source: CVE-2023-34459

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.2

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/19/2023

Vulnerability Publication Date: 6/16/2023

Reference Information

CVE: CVE-2023-34459

cwe: CWE-354