CVE-2022-31153 json
OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli
published 2022-07-15 4 y ago modified 2026-07-07 4 mo ago also GHSA-8mjr-jr5h-q2xr , PYSEC-2026-890 , EUVD-2022-0403
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi openzeppelin-cairo-contracts 0.2.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/OpenZeppelin/cairo-contracts/issues/386 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | openzeppelin-cairo-contracts | <0.2.1 |
0.2.1 |
Affected products
- OpenZeppelin cairo-contracts
Classification
References
-
github.com
/OpenZeppelin/cairo-contracts/pull/387
web, patch, third-party-advisory
-
github.com
/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9
web, patch, third-party-advisory
-
github.com
/OpenZeppelin/cairo-contracts/issues/386
web, exploit, issue-tracking, third-party-advisory
-
github.com
/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203
web, exploit, third-party-advisory
-
github.com
/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr
web, third-party-advisory
-
github.com
/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31153
advisory
-
github.com
/OpenZeppelin/cairo-contracts
package
-
github.com
/pypa/advisory-database/tree/main/vulns/openzeppelin-cairo-contracts-test/PYSEC-2022-43143.yaml
web
-
pypi.org
/project/openzeppelin-cairo-contracts
package
-
github.com
/advisories/GHSA-8mjr-jr5h-q2xr
advisory
Sources
- CVE List CVE-2022-31153
- GitHub Advisory GHSA-8mjr-jr5h-q2xr
- NVD CVE-2022-31153
- OSV PYSEC-2026-890
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.