CVE-2023-23940

Source
https://nvd.nist.gov/vuln/detail/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:11Z
Modified
2025-11-04T19:33:04Z
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
{
    "cwe_ids": [
        "CWE-345",
        "CWE-347"
    ]
}
References

Affected packages

Git / github.com/openzeppelin/cairo-contracts

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/cairo-contracts
Events