HIGH🇬🇧 English

CVE-2022-31170

CVSS 7.5v3.1pub. 2022-07-22upd. 2024-11-21

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.

oryginał EN
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Openzeppelin Contracts

    APP
    Openzeppelin
    4.0.0 – 4.7.1 (bez)
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
CWE
Referencje

Powiązane podatności

CVE-2021-41264CRITICAL9.8ten sam produkt

OpenZeppelin Contracts is a library for smart contract development. In affected versions upgradeable contracts...

CVE-2021-39167CRITICAL10.0ten sam produkt

OpenZepplin is a library for smart contract development. In affected versions a vulnerability in TimelockContr...

CVE-2021-39168CRITICAL10.0ten sam produkt

OpenZepplin is a library for smart contract development. In affected versions a vulnerability in TimelockContr...

CVE-2022-35961HIGH7.9ten sam produkt

OpenZeppelin Contracts is a library for secure smart contract development. The functions `ECDSA.recover` and `...

CVE-2022-31198HIGH7.5ten sam produkt

OpenZeppelin Contracts is a library for secure smart contract development. This issue concerns instances of Go...

CVE-2022-31170 — HIGH 7.5 | CVEbaza.pl