Home / OpenZeppelin / cairo-contracts / CVE-2023-23940
CVE-2023-23940: is it exploited, and which versions of OpenZeppelin cairo-contracts are affected and fixed?
CVE-2023-23940 is a cryptographic signature not verified vulnerability in OpenZeppelin cairo-contracts. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: openzeppelin-cairo-contracts from 0.2.0 before 0.6.1 (GitHub advisory GHSA-626q-v9j4-mcp4). Fixed in 0.6.1 (GitHub advisory GHSA-626q-v9j4-mcp4). Severity: Medium (6.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2023-23940?
OpenZeppelin Contracts for Cairo is vulnerable to signature validation bypass
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.
From the CVE record by GitHub_M, last updated March 10, 2025, 21:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| OpenZeppelin | cairo-contracts | >= 0.2.0, < 0.6.1 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | openzeppelin-cairo-contracts | >= 0.2.0, < 0.6.1 | 0.6.1 | GHSA-626q-v9j4-mcp4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 7, 2024. Summary: OpenZeppelin Contracts contains Improper Verification of Cryptographic Signature.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openzeppelin | contracts | from 0.2.0 before 0.6.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:38 UTC.
How severe is CVE-2023-23940?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L | GitHub_M |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-23940 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 10, 2025)
- EPSS
- 0.23% probability of exploitation activity in the next 30 days, percentile 14.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-347 Improper Verification of Cryptographic Signature
- CWE-345 Insufficient Verification of Data Authenticity
Where are the vendor advisories and references?
- https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-626q-v9j4-mcp4 x_refsource_CONFIRM
- https://github.com/OpenZeppelin/cairo-contracts/pull/542/commits/6d4cb750478fca2fd916f73297632f899aca9299 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 19, 2023
- Published
- February 3, 2023, 19:43 UTC
- CVE record updated
- March 10, 2025, 21:16 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:38 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect cairo-contracts?
- Aug 30, 2024CVE-2024-45304 OpenZeppelin cairo-contracts: always-incorrect control flow
- Jul 15, 2022CVE-2022-31153 OpenZeppelin cairo-contracts: improper Control of a Resource Through its Lifetime
Questions about CVE-2023-23940
Is CVE-2023-23940 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 0.23% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of OpenZeppelin cairo-contracts are affected by CVE-2023-23940?
openzeppelin-cairo-contracts from 0.2.0 before 0.6.1, per the GitHub advisory GHSA-626q-v9j4-mcp4. The tables above give every range the sources list.
Which version fixes CVE-2023-23940?
0.6.1, per the GitHub advisory GHSA-626q-v9j4-mcp4. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-23940?
Medium (6.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-23940?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.