CVE-2023-23940
published medium CVSS 3.1 · 6.4OpenZeppelin Contracts for Cairo is vulnerable to signature validation bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenZeppelin | — | cairo-contracts>= 0.2.0, < 0.6.1 | Affected | Not stated | GitHub_M |
Description
OpenZeppelin Contracts for Cairo is a library for secure smart contract development written in Cairo for StarkNet, a decentralized ZK Rollup. `is_valid_eth_signature` is missing a call to `finalize_keccak` after calling `verify_eth_signature`. As a result, any contract using `is_valid_eth_signature` from the account library (such as the `EthAccount` preset) is vulnerable to a malicious sequencer. Specifically, the malicious sequencer would be able to bypass signature validation to impersonate an instance of these accounts. The issue has been patched in 0.6.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenZeppelin | cairo-contracts | >= 0.2.0, < 0.6.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-347 CWE-347: Improper Verification of Cryptographic Signature
- CWE-345 CWE-345: Insufficient Verification of Data Authenticity
References
2Provider assertions
3GitHub_M · cna
OpenZeppelin Contracts for Cairo is vulnerable to signature validation bypass
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2064756a9c66b4ed588d28ea23ccdc332c3d2704bc48147db7fb77af7ecbb634
- Ingested
- 23 Sep 2026, 08:06:35 UTC
- Source record
- Official CVE record