logo

CVE-2023-30542 @openzeppelin/contracts-upgradeable

Package

Manager: npm
Name: @openzeppelin/contracts-upgradeable
Vulnerable Version: >=4.3.0 <4.8.3

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00175 pctl0.39335

Details

GovernorCompatibilityBravo may trim proposal calldata ### Impact 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. ### Patches This issue has been patched in v4.8.3. ### Workarounds Ensure that all proposals that pass through governance have equal length `signatures` and `calldatas` parameters.

Metadata

Created: 2023-04-20T14:11:03Z
Modified: 2023-04-27T15:35:33Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-93hq-5wgc-jc82/GHSA-93hq-5wgc-jc82.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-93hq-5wgc-jc82
Finding: F184
Auto approve: 1