ghsa-4g63-c64m-25w9
Vulnerability from github
Published
2022-07-21 22:33
Modified
2022-07-21 22:33
Severity ?
VLAI Severity ?
Summary
OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers
Details
Impact
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. We believe this to be unlikely.
Patches
The issue was patched in 4.7.1.
References
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552
For more information
If you have any questions or comments about this advisory, or need assistance deploying the fix, email us at security@openzeppelin.com.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "@openzeppelin/contracts" }, "ranges": [ { "events": [ { "introduced": "4.1.0" }, { "fixed": "4.7.1" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "npm", "name": "@openzeppelin/contracts-upgradeable" }, "ranges": [ { "events": [ { "introduced": "4.1.0" }, { "fixed": "4.7.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-31172" ], "database_specific": { "cwe_ids": [ "CWE-20", "CWE-347" ], "github_reviewed": true, "github_reviewed_at": "2022-07-21T22:33:37Z", "nvd_published_at": "2022-07-22T04:15:00Z", "severity": "HIGH" }, "details": "### Impact\n\n`SignatureChecker.isValidSignatureNow` is not expected to revert. However, an incorrect assumption about Solidity 0.8\u0027s `abi.decode` allows some cases to revert, given a target contract that doesn\u0027t implement EIP-1271 as expected.\n\nThe 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. We believe this to be unlikely.\n\n### Patches\n\nThe issue was patched in 4.7.1.\n\n### References\n\nhttps://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552\n\n### For more information\n\nIf you have any questions or comments about this advisory, or need assistance deploying the fix, email us at [security@openzeppelin.com](mailto:security@openzeppelin.com).", "id": "GHSA-4g63-c64m-25w9", "modified": "2022-07-21T22:33:37Z", "published": "2022-07-21T22:33:37Z", "references": [ { "type": "WEB", "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4g63-c64m-25w9" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31172" }, { "type": "WEB", "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "type": "CVSS_V3" } ], "summary": "OpenZeppelin Contracts\u0027s SignatureChecker may revert on invalid EIP-1271 signers" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…