Vulnerability Details : CVE-2022-31153
Potential exploit
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.
Products affected by CVE-2022-31153
- cpe:2.3:a:openzeppelin:contracts:0.2.0:*:*:*:*:cairo:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-31153
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 31 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-31153
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2022-31153
-
The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.Assigned by: security-advisories@github.com (Secondary)
-
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-31153
-
https://github.com/OpenZeppelin/cairo-contracts/issues/386
`ecdsa_ptr` points to reference in Account lib's `execute` · Issue #386 · OpenZeppelin/cairo-contracts · GitHubExploit;Issue Tracking;Third Party Advisory
-
https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1
Release v0.2.1 · OpenZeppelin/cairo-contracts · GitHubRelease Notes;Third Party Advisory
-
https://github.com/OpenZeppelin/cairo-contracts/pull/387
Fix account signature by andrew-fleming · Pull Request #387 · OpenZeppelin/cairo-contracts · GitHubPatch;Third Party Advisory
-
https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9
Eth account support (#361) · OpenZeppelin/cairo-contracts@2cd6027 · GitHubPatch;Third Party Advisory
-
https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203
cairo-contracts/library.cairo at release-0.2.0 · OpenZeppelin/cairo-contracts · GitHubExploit;Third Party Advisory
-
https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xr
Account cannot process transactions on Goerli · Advisory · OpenZeppelin/cairo-contracts · GitHubThird Party Advisory
Jump to