SCA: security update for @openzeppelin/contracts, @openzeppelin/contracts-upgradeable (GHSA-qh9x-gcfh-pcrw)

high Tenable Cloud Security Plugin ID 418143

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. Versions 4.0.0 until 4.7.1 are
vulnerable to ERC165Checker reverting instead of returning `false`. `ERC165Checker.supportsInterface` is
designed to always successfully return a boolean, and under no circumstance revert. However, an incorrect
assumption about Solidity 0.8's `abi.decode` allows some cases to revert, given a target contract that
doesn't implement EIP-165 as expected, specifically if it returns a value other than 0 or 1. The contracts
that may be affected are those that use `ERC165Checker` to check for support for an interface and then
handle the lack of support in a way other than reverting. The issue was patched in version 4.7.1.
(CVE-2022-31170)

See Also

https://github.com/advisories/GHSA-qh9x-gcfh-pcrw

Plugin Details

Severity: High

ID: 418143

Version: Revision 1.13

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.18

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2022-31170

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/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: 7/21/2022

Vulnerability Publication Date: 7/21/2022

Reference Information

CVE: CVE-2022-31170