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

Published Aug 30, 2024
·
Updated

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 Software

1 affected component
OpenZeppelin Contracts Cairo<0.16.0

Event History

Aug 30, 2024
CVE Published
via MITRE·11:51 PM
Data Sourced
via MITRE·11:51 PM
DescriptionSeverityWeakness
Aug 31, 2024
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-45304?

CVE-2024-45304 is classified as a critical vulnerability due to the potential for unauthorized ownership transfer.

2

How do I fix CVE-2024-45304?

To fix CVE-2024-45304, update the OpenZeppelin Cairo Contracts to version 0.16.0 or later.

3

What software is affected by CVE-2024-45304?

CVE-2024-45304 affects OpenZeppelin Contracts version 0.16.0 and earlier.

4

What is the risk associated with CVE-2024-45304?

The risk associated with CVE-2024-45304 includes unauthorized ownership transfer, compromising contract security.

5

When was CVE-2024-45304 disclosed?

CVE-2024-45304 was disclosed in 2024, highlighting severe security implications for users of the affected contracts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203