{"api_version":"1","generated_at":"2026-04-08T12:44:25+00:00","cve":"CVE-2022-31172","urls":{"html":"https://cve.report/CVE-2022-31172","api":"https://cve.report/api/cve/CVE-2022-31172.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31172","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31172"},"summary":{"title":"CVE-2022-31172","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-07-22 04:15:00","updated_at":"2022-08-01 15:56:00"},"problem_types":["CWE-347"],"metrics":[],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9","refsource":"CONFIRM","tags":[],"title":"SignatureChecker may revert on invalid EIP-1271 signers · Advisory · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552","refsource":"MISC","tags":[],"title":"Fix issues caused by abi.decode reverting by Amxx · Pull Request #3552 · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31172","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31172","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31172","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openzeppelin","cpe5":"contracts","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31172","STATE":"PUBLIC","TITLE":"OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"openzeppelin-contracts","version":{"version_data":[{"version_value":">= 4.1.0, < 4.7.1"}]}}]},"vendor_name":"OpenZeppelin"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]}]},"references":{"reference_data":[{"name":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9","refsource":"CONFIRM","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9"},{"name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552","refsource":"MISC","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552"}]},"source":{"advisory":"GHSA-4g63-c64m-25w9","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-07-22 04:15:00","lastModifiedDate":"2022-08-01 15:56:00","problem_types":["CWE-347"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*","versionStartIncluding":"4.1.0","versionEndExcluding":"4.7.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}