CVE-2022-31153
MEDIUM 6.5CVSS 3.1OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli
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.
- Published
- 15 Jul 2022
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-664CWE-863
- Also known as
- GHSA-8mjr-jr5h-q2xrPYSEC-2026-890
- Sources
- NVDJSONOSV GHSA-8mjr-jr5h-q2xrJSONOSV PYSEC-2026-890JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | contractscpe:2.3:a:openzeppelin:contracts:0.2.0:*:*:*:*:cairo:*:* |
= 0.2.0 | |
| OSV | PyPI | openzeppelin-cairo-contracts | < 0.2.1 | 0.2.1 |
References
- https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203 · Exploit, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9 · Patch, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/cairo-contracts/issues/386 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/cairo-contracts/pull/387 · Patch, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31153 · ADVISORY
- https://github.com/OpenZeppelin/cairo-contracts · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/openzeppelin-cairo-contracts-test/PYSEC-2022-43143.yaml · WEB
- https://pypi.org/project/openzeppelin-cairo-contracts · PACKAGE
- https://github.com/advisories/GHSA-8mjr-jr5h-q2xr · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jul 2022)