Vulnerabilities · 2022 · Openzeppelin
CVE-2022-31153
Openzeppelin Contracts vulnerability
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 products
Contracts. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Openzeppelin Contracts runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9 · Patch
- github.com/OpenZeppelin/cairo-contracts/pull/387 · Patch
- github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/librar · Exploit
- github.com/OpenZeppelin/cairo-contracts/issues/386 · Exploit
- github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1 · Third Party Advisory
- github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-31153
- github.com/pypa/advisory-database/tree/main/vulns/openzeppelin-cairo-contracts-test/PYSEC-
- nvd.nist.gov/vuln/detail/CVE-2022-31153
- cve.org/CVERecord?id=CVE-2022-31153
More vulnerabilities in Openzeppelin products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.