CVE-2023-30542

MEDIUM

OpenZeppelin Contracts 4.3.0-4.8.2 - Improper Input Validation in GovernorCompatibilityBravo Proposal Creation

Title source: llm
STIX 2.1

Description

OpenZeppelin Contracts is a library for secure smart contract development. The proposal creation entrypoint (`propose`) in `GovernorCompatibilityBravo` allows the creation of proposals with a `signatures` array shorter than the `calldatas` array. This causes the additional elements of the latter to be ignored, and if the proposal succeeds the corresponding actions would eventually execute without any calldata. The `ProposalCreated` event correctly represents what will eventually execute, but the proposal parameters as queried through `getActions` appear to respect the original intended calldata. This issue has been patched in 4.8.3. As a workaround, ensure that all proposals that pass through governance have equal length `signatures` and `calldatas` parameters.

Scores

CVSS v3 6.8
EPSS 0.0058
EPSS Percentile 43.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-20
Status published
Products (4)
openzeppelin/contracts 4.3.0 - 4.8.3
openzeppelin/contracts 4.3.0 - 4.8.3npm
openzeppelin/contracts-upgradeable 4.3.0 - 4.8.3npm
openzeppelin/contracts_upgradeable 4.3.0 - 4.8.3
Published Apr 16, 2023
Tracked Since Feb 18, 2026