CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Openzeppelin

CVE-2022-31172
Openzeppelin Contracts vulnerability

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.

Affected products

Contracts. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Openzeppelin Contracts runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Openzeppelin products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.