SecurityContext

CVE-2023-23940: OpenZeppelin Cairo Contracts - Authentication Bypass

  • Cve: CVE-2023-23940
  • Name: OpenZeppelin Cairo Contracts - Authentication Bypass
  • Description: 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.
  • Impact: Attackers can impersonate accounts by bypassing signature validation, leading to unauthorized actions and potential security breaches.
  • Remediation: Update to version 0.6.1 or later.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.0023
  • Epss percentile: 0.13935
  • Assignee: [email protected]
  • Published at: 2023-02-03T20:15:11Z
  • Age in days: 1390
  • Modified at: 2026-06-17T05:38:20Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-23940
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-345Insufficient Verification of Data Authenticity
CWE-347Improper Verification of Cryptographic Signature

References

UrlSourceTags
https://github.com/OpenZeppelin/cairo-contracts/pull/542/commits/6d4cb750478fca2fd916f73297632f899aca9299nvdPatch, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-626q-v9j4-mcp4nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
openzeppelin:contracts>= 0.2.0, < 0.6.1nonvd/v1/products/openzeppelin/contracts

Projects

RepositoryLink kindsIndexedUrl
openzeppelin/cairo-contractspackage, pull, security_advisoryyes/v1/repositories/openzeppelin/cairo-contracts

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts