Vulnerability · Published Jul 15, 2022 · Assigned by GitHub_M

CVE-2022-31153OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli

Medium 6.5

In plain English

A medium-severity security flaw in cairo-contracts from OpenZeppelin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.5%top 26.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIopenzeppelin-cairo-contracts0.2.1GHSA-8mjr-jr5h-q2xr
PyPIopenzeppelin-cairo-contracts0.2.1PYSEC-2026-890

Affected products (as reported)

VendorProductVersions
OpenZeppelin cairo-contracts = 0.2.0

Weakness: CWE-664 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References