{"id":"CVE-2022-31172","published":"2022-07-21T13:55:11Z","modified":"2025-04-23T17:57:33Z","title":"OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers","vendor":"OpenZeppelin","product":"openzeppelin-contracts","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00515,"percentile":0.44769,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.95},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"openzeppelin","affectedVersions":[{"vendor":"OpenZeppelin","product":"openzeppelin-contracts","versions":[">= 4.1.0, < 4.7.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:53:13.610748Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@openzeppelin/contracts","vulnerableRanges":[">=4.1.0, <4.7.1"],"patched":["4.7.1"],"from":["GHSA-4g63-c64m-25w9"],"provenance":"source"},{"ecosystem":"npm","package":"@openzeppelin/contracts-upgradeable","vulnerableRanges":[">=4.1.0, <4.7.1"],"patched":["4.7.1"],"from":["GHSA-4g63-c64m-25w9"],"provenance":"source"}],"summary":{"text":"OpenZeppelin Contracts' SignatureChecker component, which is part of the openzeppelin-contracts smart contract library, fails to handle a target contract that does not implement EIP-1271 as expected, because of an incorrect assumption about how Solidity 0.8's abi.decode behaves.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:33Z"},"euvd":{"id":"EUVD-2022-6227","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-46320","published":"2022-02-04","fixed":"4.4.1","kev":false,"link":{"from":"CVE-2021-46320","to":"CVE-2022-31172","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.4.1","toFixed":"4.7.1","daysApart":167}]}},{"cve":"CVE-2022-39384","published":"2022-11-04","fixed":"4.4.1","kev":false},{"cve":"CVE-2022-31170","published":"2022-07-21","fixed":"4.7.1","kev":false},{"cve":"CVE-2022-31172","published":"2022-07-21","fixed":"4.7.1","kev":false},{"cve":"CVE-2022-31198","published":"2022-08-01","fixed":"4.7.2","kev":false,"link":{"from":"CVE-2022-31172","to":"CVE-2022-31198","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11}]}},{"cve":"CVE-2022-35915","published":"2022-08-01","fixed":"4.7.2","kev":false,"link":{"from":"CVE-2022-31172","to":"CVE-2022-35915","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11}]}},{"cve":"CVE-2022-35916","published":"2022-08-01","fixed":"4.7.2","kev":false,"link":{"from":"CVE-2022-31172","to":"CVE-2022-35916","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.7.1","toFixed":"4.7.2","daysApart":11}]}}],"package":"npm:@openzeppelin/contracts"}}