CVE-2023-23940

Source
https://cve.org/CVERecord?id=CVE-2023-23940
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23940.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-23940
Aliases
Published
2023-02-03T19:43:11.178Z
Modified
2026-08-12T03:51:16.564323570Z
Severity
  • 6.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L CVSS Calculator
Summary
OpenZeppelin Contracts for Cairo is vulnerable to signature validation bypass
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23940.json",
    "cwe_ids": [
        "CWE-345",
        "CWE-347"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/openzeppelin/cairo-contracts

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/cairo-contracts
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:cairo:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0.2.0"
        },
        {
            "fixed": "0.6.1"
        }
    ]
}

Affected versions

v0.*
v0.2.0
v0.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23940.json"