# CVE-2022-31172: OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2022-07-21T13:55:11.000Z
- Modified: 2026-06-17T04:44:57.457Z
- Also known as: GHSA-4g63-c64m-25w9
- Weaknesses: CWE-20, CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- OpenZeppelin openzeppelin-contracts: >= 4.1.0, < 4.7.1
- @openzeppelin/contracts (npm): from 4.1.0 before 4.7.1
- @openzeppelin/contracts-upgradeable (npm): from 4.1.0 before 4.7.1
- openzeppelin contracts: from 4.1.0 before 4.7.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9> (third-party-advisory, web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31172> (advisory)

## Sources

- CVE List: [CVE-2022-31172](https://www.cve.org/CVERecord?id=CVE-2022-31172), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4g63-c64m-25w9](https://github.com/advisories/GHSA-4g63-c64m-25w9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31172](https://nvd.nist.gov/vuln/detail/CVE-2022-31172), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31172 · Whole record: https://cve.day/CVE-2022-31172.json · Rebuilt by cve.day 2026-11-25T22:58:13.159Z
