Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-23940

6.4 · MEDIUM
Published Feb 3, 2023 openzeppelin CWE-345 EPSS 0.22% (12th pctl)

Overview

CVE-2023-23940 is a medium-severity vulnerability affecting openzeppelin contracts. It was published on February 3, 2023 and has a CVSS 3.1 base score of 6.4 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from openzeppelin. Update contracts to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
openzeppelin contracts >= 0.2.0, < 0.6.1 Affected

Frequently Asked Questions

What is CVE-2023-23940?

CVE-2023-23940 is a medium-severity vulnerability affecting openzeppelin contracts. It was published on February 3, 2023 and has a CVSS 3.1 base score of 6.4 (MEDIUM).

How severe is CVE-2023-23940?

This vulnerability has a CVSS 3.1 base score of 6.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2023-23940?

Check the references section for vendor advisories and patches from openzeppelin. Update contracts to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-23940?

CyberStrike's AI-powered security agents can automatically detect CVE-2023-23940 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.