Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openzeppelin | Contracts | < 0.16.0 |
Related Weaknesses (CWE)
References
- https://github.com/OpenZeppelin/cairo-contracts/commit/ef87d7847980e0cf83f4b7f3fPatch
- https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.16.0Release Notes
- https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-w2px-25Vendor Advisory
FAQ
What is CVE-2024-45304?
CVE-2024-45304 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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 in...
How severe is CVE-2024-45304?
CVE-2024-45304 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-45304?
Check the references section above for vendor advisories and patch information. Affected products include: Openzeppelin Contracts.