CVE-2023-23940Openzeppelin Contracts
Medium 5.3
Follow: this CVE · Openzeppelin · Openzeppelin Contracts We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.3
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 10
- Auth required
- Yes
- Published
- Feb 3, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Contracts.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | openzeppelin-cairo-contracts |
≥ 0.2.0 < 0.6.1 |
0.6.1 |
pip install "openzeppelin-cairo-contracts>=0.6.1" |
| PyPI | openzeppelin-cairo-contracts |
≥ 0.2.0 < 0.6.1 |
0.6.1 |
pip install "openzeppelin-cairo-contracts>=0.6.1" |
Per OSV / GitHub Advisories (GHSA-626q-v9j4-mcp4, PYSEC-2023-39). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | ≥ 0.2.0 < 0.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory