Skip to content

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

MediumCVSS 6.5 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi openzeppelin-cairo-contracts(PyPI) < 0.2.1; = 0.1.0; = 0.2.0 0.2.1 Fixed
openzeppelin @openzeppelin/contracts = 0.2.0 No fix listed Versions listed
openzeppelin cairo-contracts = = 0.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi openzeppelin-cairo-contracts(PyPI) < 0.2.1 0.2.1
pypi openzeppelin-cairo-contracts(PyPI) = 0.1.0 No fix listed
pypi openzeppelin-cairo-contracts(PyPI) = 0.2.0 No fix listed
openzeppelin cairo-contracts = = 0.2.0 No fix listed
openzeppelin @openzeppelin/contracts = 0.2.0 No fix listed

References