{"id":"CVE-2022-31153","published":"2022-07-15T17:50:14Z","modified":"2025-04-22T17:48:58Z","title":"OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli","vendor":"OpenZeppelin","product":"cairo-contracts","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01455,"percentile":0.74114,"provenance":"source"},"cwes":[{"id":"CWE-664","name":"Improper Control of a Resource Through its Lifetime"}],"references":[{"url":"https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenZeppelin/cairo-contracts/issues/386","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenZeppelin/cairo-contracts/pull/387","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":14.82},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"openzeppelin","affectedVersions":[{"vendor":"OpenZeppelin","product":"cairo-contracts","versions":["= 0.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:45:31.784349Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"openzeppelin-cairo-contracts","vulnerableRanges":["<0.2.1"],"patched":["0.2.1"],"from":["GHSA-8mjr-jr5h-q2xr","PYSEC-2026-890"],"provenance":"source"}],"summary":{"text":"The OpenZeppelin Contracts for Cairo library (cairo-contracts) version 0.2.0 has a flaw in its account contracts, in both the vanilla and ethereum flavors, that leaves them unable to process transactions on StarkNet's Goerli deployments. An attacker with low-privileged access and network reachability to the affected network can disrupt account operation through this flaw, with no user interaction required and no special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:44Z"},"euvd":{"id":"EUVD-2022-0403","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openzeppelin-cairo-contracts-cve-2022-31153","children":[{"from":"CVE-2022-31153","to":"CVE-2023-23940","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/openzeppelin/account/library.cairo"],"commits":["https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9","https://github.com/OpenZeppelin/cairo-contracts/commit/6d4cb750478fca2fd916f73297632f899aca9299"],"basis":"rarely changed file"}]}]}}