CVE-2022-35961

ECDSA signature malleability in OpenZeppelin Contracts

MEDIUM
6.5
CVSS Score
Published: August 14, 2022 at 12:05 AM UTC
Updated: June 17, 2026 at 04:52 AM UTC
3 products affected across 1 vendorContractsContracts UpgradeableOpenzeppelin Contracts

Using openzeppelin-contracts by OpenZeppelin?

Get instant alerts when new vulnerabilities affect openzeppelin-contracts - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.1.0 ≤ v < 4.7.3
Affected range stops below 4.7.3, so it looks safe — our inference, not a vendor statement
4.1.0 ≤ v < 4.7.3
Affected range stops below 4.7.3, so it looks safe — our inference, not a vendor statement
v < 4.7.3
Affected range stops below 4.7.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-354

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card