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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.46%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-07-15T17:50:14.000Z
- Modified: 2026-07-07T11:56:13.926Z
- Also known as: GHSA-8mjr-jr5h-q2xr, PYSEC-2026-890
- Weaknesses: CWE-664, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OpenZeppelin cairo-contracts: = 0.2.0
- openzeppelin-cairo-contracts (PyPI): before 0.2.1
- openzeppelin contracts: 0.2.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/OpenZeppelin/cairo-contracts/issues/386> (exploit, issue-tracking, third-party-advisory, web)
- <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/security/advisories/GHSA-8mjr-jr5h-q2xr> (third-party-advisory, web)
- <https://github.com/OpenZeppelin/cairo-contracts/pull/387> (patch, third-party-advisory, web)
- <https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9> (patch, third-party-advisory, web)
- <https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1> (release-notes, 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)

## Sources

- CVE List: [CVE-2022-31153](https://www.cve.org/CVERecord?id=CVE-2022-31153), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-8mjr-jr5h-q2xr](https://github.com/advisories/GHSA-8mjr-jr5h-q2xr), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-31153](https://nvd.nist.gov/vuln/detail/CVE-2022-31153), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-890](https://osv.dev/vulnerability/PYSEC-2026-890), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-31153 · Whole record: https://cve.day/CVE-2022-31153.json · Rebuilt by cve.day 2026-11-25T22:58:12.978Z
