CVE-2023-23940
MEDIUM 5.3CVSS 3.1OpenZeppelin Contracts contains Improper Verification of Cryptographic Signature
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.
- Published
- 3 Feb 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-345CWE-347
- Also known as
- GHSA-626q-v9j4-mcp4PYSEC-2023-39
- Sources
- NVDJSONOSV GHSA-626q-v9j4-mcp4JSONOSV PYSEC-2023-39JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | contractscpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:cairo:*:* |
>= 0.2.0, < 0.6.1 | 0.6.1 |
| OSV | PyPI | openzeppelin-cairo-contracts | >= 0.2.0, < 0.6.1 | 0.6.1 |
References
- https://github.com/OpenZeppelin/cairo-contracts/pull/542/commits/6d4cb750478fca2fd916f73297632f899aca9299 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-626q-v9j4-mcp4 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-23940 · ADVISORY
- https://github.com/OpenZeppelin/cairo-contracts · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/openzeppelin-cairo-contracts/PYSEC-2023-39.yaml · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 3 Feb 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Feb 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Feb 2023)