CVE-2022-31172CWE-20

OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers

High · published July 21, 2022

CVSS v3.1
7.5
EPSS
1%
Percentile
42.1
In the wild
Unconfirmed
What it is

OpenZeppelin Contracts is a library for smart contract development. Versions 4.1.0 until 4.7.1 are vulnerable to the SignatureChecker reverting. `SignatureChecker.isValidSignatureNow` is not expected to 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-1271 as expected. The contracts that may be affected are those that use `SignatureChecker` to check the validity of a signature and handle invalid signatures in a way other than reverting. The issue was patched in version 4.7.1.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00503 · 42.1th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2022-07-21T13:55Z
EPSS history
Timeline
  • 21 JUL 13:55Z
    OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers
    cvelistv5