Vulnerabilities · 2024 · Openzeppelin
CVE-2024-45304
Openzeppelin Contracts vulnerability
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.
Affected products
Contracts. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Openzeppelin Contracts runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-w2px-25pm-2cf9 · Vendor Advisory
- github.com/OpenZeppelin/cairo-contracts/commit/ef87d7847980e0cf83f4b7f3ff23e6590fb643ec · Patch
- github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.16.0
- nvd.nist.gov/vuln/detail/CVE-2024-45304
- cve.org/CVERecord?id=CVE-2024-45304
More vulnerabilities in Openzeppelin products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.