# CVE-2024-45304: OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2024-08-30T23:51:01.301Z
- Modified: 2026-06-17T07:53:59.290Z
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- OpenZeppelin cairo-contracts: < 0.16.0
- openzeppelin contracts: before 0.16.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/OpenZeppelin/cairo-contracts/security/advisories/GHSA-w2px-25pm-2cf9> (vendor-advisory)
- <https://github.com/OpenZeppelin/cairo-contracts/commit/ef87d7847980e0cf83f4b7f3ff23e6590fb643ec> (patch)
- <https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.16.0> (release-notes)

## Sources

- CVE List: [CVE-2024-45304](https://www.cve.org/CVERecord?id=CVE-2024-45304), CVE Terms of Use, modified 2024-09-03
- NVD: [CVE-2024-45304](https://nvd.nist.gov/vuln/detail/CVE-2024-45304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45304 · Whole record: https://cve.day/CVE-2024-45304.json · Rebuilt by cve.day 2026-11-25T22:58:44.909Z
