CVE-2024-45304

Source
https://cve.org/CVERecord?id=CVE-2024-45304
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45304.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-45304
Aliases
  • GHSA-w2px-25pm-2cf9
Published
2024-08-30T23:51:01.301Z
Modified
2025-12-05T06:16:11.023349Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-670"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45304.json"
}
References

Affected packages

Git / github.com/openzeppelin/cairo-contracts

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/cairo-contracts
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.1.0
v0.*
v0.1.0
v0.13.0
v0.15.0-rc.0
v0.2.0
v0.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45304.json"