# CVE-2022-35961: ECDSA signature malleability in OpenZeppelin Contracts

- Severity: High 7.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L`
- 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.45%, higher than 41% of CVEs (2026-12-01)
- Published: 2022-08-14T00:05:09.000Z
- Modified: 2026-06-17T04:52:36.397Z
- Also known as: GHSA-4h98-2769-gh6h
- Weaknesses: CWE-354
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4h98-2769-gh6h> (third-party-advisory, web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3610> (patch, third-party-advisory, web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.3> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35961> (advisory)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/commit/d693d89d99325f395182e4f547dbf5ff8e5c3c87> (web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts> (package)

## Sources

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

---

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