CVE-2022-31172

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31172
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31172.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31172
Aliases
Related
Published
2022-07-22T04:15:14Z
Modified
2025-07-29T10:33:12.935214Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/openzeppelin/openzeppelin-contracts

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/openzeppelin-contracts
Events

Affected versions

v4.*

v4.1.0
v4.2.0
v4.2.0-rc.0
v4.3.0
v4.3.0-rc.0
v4.3.1
v4.3.2
v4.4.0
v4.4.0-rc.0
v4.4.0-rc.1
v4.4.1
v4.7.0
v4.7.0-rc.0