CVE-2022-35961 in Openzeppelin Contracts and 1 more product
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 functi...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openzeppelin | Contracts | ≥ 4.1.0, < 4.7.3 |
| Openzeppelin | Contracts Upgradeable | ≥ 4.1.0, < 4.7.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-35961 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-322210-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Published | 2022-08-15 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-354: CWE-354
Related attack patterns (CAPEC)
CAPEC-145 Checksum Spoofing via CWE-354
CAPEC-463 Padding Oracle Crypto Attack via CWE-354
CAPEC-75 Manipulating Writeable Configuration Files via CWE-354
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
OpenZeppelin Contracts functions ECDSA.recover and ECDSA.tryRecover are vulnerable to signature malleability due to accepting EIP-2098 compact signatures, which can lead to unauthorized actions if not properly handled.
An attacker can exploit the signature malleability by crafting alternative signatures that are valid but not intended by the original signer. This can lead to the recovery of the wrong public key, potentially allowing unauthorized transactions or actions.
Questions
What is CVE-2022-35961?
OpenZeppelin Contracts functions ECDSA.recover and ECDSA.tryRecover are vulnerable to signature malleability due to accepting EIP-2098 compact signatures, which can lead to unauthorized actions if not properly handled.
What is the CVSS score for CVE-2022-35961?
CVE-2022-35961 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.5%.
Is CVE-2022-35961 actively exploited?
No confirmed active exploitation of CVE-2022-35961 as of 2026-09-25.
How do I remediate CVE-2022-35961?
Priority: MEDIUM.
What systems are affected by CVE-2022-35961?
CVE-2022-35961 affects Openzeppelin Contracts, Contracts Upgradeable.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openzeppelin","product":"Contracts","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.