CVE-2022-35961ECDSA signature malleability in OpenZeppelin Contracts
- 7.9HighCVSS base score
- 0.45%Exploitation in 30 daysEPSS · top 60% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
OpenZeppelin Contracts is a library for secure smart contract development. The functions `ECDSA.recover` and `ECDSA.tryRecover` are vulnerable to a kind of signature malleability due to accepting EIP-2098 compact signatures in addition to the traditional 65 byte signature format. This is only an issue for the functions that take a single `bytes` argument, and not the functions that take `r, v, s` or `r, vs` as separate arguments. The potentially affected contracts are those that implement signature reuse or replay protection by marking the signature itself as used rather than the signed message or a nonce included in it. A user may take a signature that has already been submitted, submit it again in a different form, and bypass this protection. The issue has been patched in 4.7.3.
Timeline
ID reserved
By GitHub_M
- 30 days later
· 30 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L |
| NVDNVD · Modified | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.45% · top 60% of all CVEs (20 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.9.
Affected products
OpenZeppelin · openzeppelin-contracts
- affected >= 4.1.0, < 4.7.3
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@openzeppelin/contractsGHSA-4h98-2769-gh6h (opens in a new tab)
- npm@openzeppelin/contracts-upgradeableGHSA-4h98-2769-gh6h (opens in a new tab)
References
References3
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4h98-2769-gh6h (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3610 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.3 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-6478 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4h98-2769-gh6h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-35961)Record last updated .