{"id":"CVE-2022-31153","aliases":["GHSA-8mjr-jr5h-q2xr","PYSEC-2026-890"],"url":"https://o3.security/vulnerability/CVE-2022-31153","summary":"OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli","details":"### Impact\nThis vulnerability affects all accounts (vanilla and ethereum flavors) in the [v0.2.0 release of OpenZeppelin Contracts for Cairo](https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.0), which are not whitelisted on StarkNet mainnet, so only goerli deployments of v0.2.0 accounts are affected.\n\nThis faulty behavior is not observed in [StarkNet's testing framework](https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/testing/starknet.py), so don't rely on it passing to detect this issue on custom accounts.\n\n### Patches\nThis bug has been patched in [v0.2.1](https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1).\n\n### References\nThe issue is detailed in https://github.com/OpenZeppelin/cairo-contracts/issues/386.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the Contracts for Cairo repo](https://github.com/OpenZeppelin/cairo-contracts/issues/new/choose)\n* Email us at [security@openzeppelin.com](mailto:security@openzeppelin.com)\n","published":"2022-07-15T17:50:14Z","modified":"2026-08-12T03:51:16.232373438Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.01414,"percentile":0.71434,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"openzeppelin-cairo-contracts","fixedVersion":"0.2.1"}],"fix":{"url":"https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9","label":"OpenZeppelin/cairo-contracts@2cd6027"},"references":[{"type":"WEB","url":"https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203"},{"type":"WEB","url":"https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31153.json"},{"type":"ADVISORY","url":"https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31153"},{"type":"REPORT","url":"https://github.com/OpenZeppelin/cairo-contracts/issues/386"},{"type":"FIX","url":"https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9"},{"type":"FIX","url":"https://github.com/OpenZeppelin/cairo-contracts/pull/387"},{"type":"PACKAGE","url":"https://github.com/OpenZeppelin/cairo-contracts"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/openzeppelin-cairo-contracts-test/PYSEC-2022-43143.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:16.232373438Z"}}