CVE-2022-31153

Medium

Description

OpenZeppelin Contracts for Cairo is a library for contract development written in Cairo for StarkNet, a decentralized ZK Rollup. Version 0.2.0 is vulnerable to an error that renders account contracts unusable on live networks. This issue affects all accounts (vanilla and ethereum flavors) in the v0.2.0 release of OpenZeppelin Contracts for Cairo, which are not whitelisted on StarkNet mainnet. Only goerli deployments of v0.2.0 accounts are affected. This faulty behavior is not observed in StarkNet's testing framework. This bug has been patched in v0.2.1.

SeverityMedium
CVSS6.5
Exploit probability—
ProductOpenzeppelin Contracts
PublishedJul 15, 2022
First seenJul 15, 2022
Weakness typeCWE-664CWE-664

How to fix

Update
  • openzeppelin-cairo-contracts0.2.1 or later

Affected products

ProductAffected versionsFixed in
openzeppelin contracts0.2.0—
openzeppelin-cairo-contractsPyPIv < 0.2.10.2.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.