First published: Thu Jul 21 2022(Updated: )
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.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
OpenZeppelin Contracts | >=4.1.0<4.7.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31172 is a vulnerability in OpenZeppelin Contracts library versions 4.1.0 until 4.7.1 that allows a SignatureChecker function to revert unexpectedly.
CVE-2022-31172 has a severity score of 7.5, which is considered high.
CVE-2022-31172 affects OpenZeppelin Contracts library versions 4.1.0 until 4.7.1 and may cause the SignatureChecker function to revert unexpectedly.
To fix CVE-2022-31172, update your OpenZeppelin Contracts library to a version higher than 4.7.1.
You can find more information about CVE-2022-31172 in the GitHub security advisory: [link].