CVE-2024-45304

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductOpenzeppelin Contracts
PublishedAug 31, 2024
First seenAug 31, 2024
Weakness typeCWE-670CWE-670

How to fix

Update
  • openzeppelin contracts0.16.0 or later

Affected products

ProductAffected versionsFixed in
openzeppelin contractsv < 0.16.00.16.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.