CVE-2023-23940
Python vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2023-23940) affects OpenZeppelin's cairo-contracts, specifically the EthAccount implementation, where the is_valid_eth_signature function was missing a critical finalize_keccak call after the verify_eth_signature operation. This vulnerability was discovered and disclosed in early 2023, affecting versions >=0.2.0 and <0.6.1 of the openzeppelin-cairo-contracts package (GitHub Advisory).

Technical details

The technical issue stems from the absence of a finalize_keccak call following the verify_eth_signature operation in the account library. This missing cryptographic finalization step could allow for signature validation bypass. The vulnerability was assigned a Moderate severity rating and was tracked as CVE-2023-23940 (GitHub Advisory).

Impact

The vulnerability could enable a malicious sequencer to bypass signature validation and potentially impersonate any instance of accounts using the affected implementation. This specifically impacts contracts utilizing is_valid_eth_signature from the account library, including the EthAccount preset (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 0.6.1 of the openzeppelin-cairo-contracts package. The fix involved adding the missing finalize_keccak call after the signature verification process (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22612HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22609HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22608HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026
CVE-2026-22690LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management