CVE-2024-45304
published medium CVSS 3.1 · 5.3OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenZeppelin | — | cairo-contracts< 0.16.0 | Affected | Not stated | GitHub_M |
Description
Cairo-Contracts are OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup. This vulnerability can lead to unauthorized ownership transfer, contrary to the original owner's intention of leaving the contract without an owner. It introduces a security risk where an unintended party (pending owner) can gain control of the contract after the original owner has renounced ownership. This could also be used by a malicious owner to simulate leaving a contract without an owner, to later regain ownership by previously having proposed himself as a pending owner. This issue has been addressed in release version 0.16.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenZeppelin | cairo-contracts | < 0.16.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-670 CWE-670: Always-Incorrect Control Flow Implementation
References
3Provider assertions
2GitHub_M · cna
OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 851dbef9e8afd2af47c15bce2499fefd8b47e65928e26ef1e69162ed65be628f
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record