CVE-2024-45304 in Openzeppelin Contracts
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 ow...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openzeppelin | Contracts | < 0.16.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-45304 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-213246-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Published | 2024-08-31 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-670: CWE-670
Analysis AI-written, not human-reviewed
CVE-2024-45304 affects Cairo-Contracts, a set of OpenZeppelin Contracts written in Cairo for Starknet. The vulnerability allows unauthorized ownership transfer, enabling an unintended party to gain control of the contract after the original owner has renounced ownership.
An attacker can exploit this vulnerability by manipulating the ownership transfer process, specifically targeting the scenario where the original owner has renounced ownership. The attacker can become the pending owner and finalize the ownership transfer, thereby gaining control of the contract.
Questions
What is CVE-2024-45304?
CVE-2024-45304 affects Cairo-Contracts, a set of OpenZeppelin Contracts written in Cairo for Starknet. The vulnerability allows unauthorized ownership transfer, enabling an unintended party to gain control of the contract after the original owner has renounced ownership.
What is the CVSS score for CVE-2024-45304?
CVE-2024-45304 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.8%.
Is CVE-2024-45304 actively exploited?
No confirmed active exploitation of CVE-2024-45304 as of 2026-09-25.
How do I remediate CVE-2024-45304?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-45304?
CVE-2024-45304 affects Openzeppelin Contracts.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openzeppelin","product":"Contracts","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.