CVE-2024-45304

CVE-2024-45304 is a medium-severity vulnerability in Openzeppelin Contracts with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-670.

Key facts

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.

Frequently asked questions

What is CVE-2024-45304?
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.
How severe is CVE-2024-45304?
CVE-2024-45304 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity high, and availability none.
Is CVE-2024-45304 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (38th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-45304?
CVE-2024-45304 affects Openzeppelin Contracts. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-45304?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-45304 have an EU (EUVD) identifier?
Yes. CVE-2024-45304 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-41428.
When was CVE-2024-45304 published?
CVE-2024-45304 was published on 2024-08-31 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Openzeppelin Contracts

All CVEs affecting Openzeppelin Contracts →

Other CWE-670 vulnerabilities

Browse all CWE-670 vulnerabilities →