Live threats

All CVEs / Openzeppelin

CVE-2023-23940Openzeppelin Contracts

Medium 5.3

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
Weakness (CWE)
CWE-345, CWE-347
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Contracts.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
openzeppelincontracts≥ 0.2.0 < 0.6.1

Official sources

References

Links published by the sources. Open them with care.