Executive Summary

Informations
Name CVE-2022-31170 First vendor Publication 2022-07-22
Vendor Cve Last vendor Modification 2022-08-01

Security-Database Scoring CVSS v3

Cvss vector : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Overall CVSS Score 7.5
Base Score 7.5 Environmental Score 7.5
impact SubScore 3.6 Temporal Score 7.5
Exploitabality Sub Score 3.9
 
Attack Vector Network Attack Complexity Low
Privileges Required None User Interaction None
Scope Unchanged Confidentiality Impact None
Integrity Impact High Availability Impact None
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector :
Cvss Base Score N/A Attack Range N/A
Cvss Impact Score N/A Attack Complexity N/A
Cvss Expoit Score N/A Authentication N/A
Calculate full CVSS 2.0 Vectors scores

Detail

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.

Original Source

Url : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31170

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-252 Unchecked Return Value

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 3

Sources (Detail)

Source Url
CONFIRM https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GH...
MISC https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552

Alert History

If you want to see full details history, please login or register.
0
1
2
3
4
5
Date Informations
2023-02-14 02:13:54
  • Multiple Updates
2022-08-01 21:27:18
  • Multiple Updates
2022-07-23 02:09:30
  • Multiple Updates
2022-07-23 02:09:09
  • Multiple Updates
2022-07-22 17:27:08
  • Multiple Updates
2022-07-22 09:27:12
  • First insertion