SecurityContext

CVE-2022-31153: OpenZeppelin Contracts for Cairo - Denial of Service

  • Cve: CVE-2022-31153
  • Name: OpenZeppelin Contracts for Cairo - Denial of Service
  • 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.
  • Impact: Account contracts become unusable on live networks, potentially causing service disruption and loss of access.
  • Remediation: Update to version 0.2.1 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01455
  • Epss percentile: 0.74011
  • Assignee: [email protected]
  • Published at: 2022-07-15T18:15:08Z
  • Age in days: 1593
  • Modified at: 2026-06-17T04:44:54Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31153
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-664Improper Control of a Resource Through its Lifetime
CWE-863Incorrect Authorization

Public exploits

UrlSourceAdded date
https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203nvd2022-07-15
https://github.com/OpenZeppelin/cairo-contracts/issues/386nvd2022-07-15

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/OpenZeppelin/cairo-contracts/commit/2cd60279c3332285d47edf9ee3888b71257acdc9Patch, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/pull/387Patch, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/blob/release-0.2.0/src/openzeppelin/account/library.cairo#L203Exploit, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/issues/386Exploit, Issue Tracking, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.2.1Release Notes, Third Party Advisory
https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-8mjr-jr5h-q2xrThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
openzeppelin:contracts= 0.2.0nonvd/v1/products/openzeppelin/contracts

Projects

RepositoryLink kindsIndexedUrl
openzeppelin/cairo-contractscommit, issues, package, pull, releases, security_advisoryyes/v1/repositories/openzeppelin/cairo-contracts

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2022-07-15
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts