Security Resilience

CVE-2024-45304

Openzeppelin Contracts ≤ 0.16.0

Published
31 August 2024
Modified
19 September 2024
Patch / advisory
CVSS Score v3.1 5.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.0048 42th percentile
Risk Priority 42 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-45304 is a medium-severity Always-Incorrect Control Flow Implementation (CWE-670) vulnerability in Openzeppelin Contracts. Its CVSS base score is 5.3 (Medium).

Operationally, ranked at the 42th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2023-23940Same product: Openzeppelin Contracts
CVE-2023-49798Same product: Openzeppelin Contracts
CVE-2023-34234Same product: Openzeppelin Contracts
CVE-2023-26488Same product: Openzeppelin Contracts
CVE-2024-27094Same product: Openzeppelin Contracts
CVE-2023-34459Same product: Openzeppelin Contracts
CVE-2023-30541Same product: Openzeppelin Contracts
CVE-2023-30542Same product: Openzeppelin Contracts
CVE-2023-40014Same vendor: Openzeppelin
CVE-2026-40394Shared CWE-670

Affected Assets

openzeppelin
contracts
≤ 0.16.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation at post-design stages directly exercises control-flow paths and reveals mismatches between implemented and intended behavior.

Requiring a documented development process and supporting tools reduces the chance that incorrect control-flow logic is introduced in the first place.

Flaw identification and remediation processes can locate and correct control-flow errors once they manifest as incorrect runtime behavior.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect paths that deviate from intended logic.

prevents

Secure coding standards and reviews directly target flawed control-flow implementations.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-670, a class-level weakness, and none of its children carries one either.

References