{"id":"CVE-2024-45304","summary":"OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts","details":"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.","aliases":["GHSA-w2px-25pm-2cf9"],"modified":"2026-04-13T04:25:36.935729Z","published":"2024-08-30T23:51:01.301Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45304.json","cwe_ids":["CWE-670"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.16.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45304.json"},{"type":"ADVISORY","url":"https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-w2px-25pm-2cf9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45304"},{"type":"FIX","url":"https://github.com/OpenZeppelin/cairo-contracts/commit/ef87d7847980e0cf83f4b7f3ff23e6590fb643ec"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openzeppelin/cairo-contracts","events":[{"introduced":"0"},{"fixed":"ba00ce76a93dcf25c081ab2698da20690b5a1cfb"},{"fixed":"ef87d7847980e0cf83f4b7f3ff23e6590fb643ec"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.16.0"}]}}],"versions":["0.1.0","v0.1.0","v0.13.0","v0.15.0-rc.0","v0.2.0","v0.2.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-45304.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}