CVE-2023-30542: GovernorCompatibilityBravo may trim proposal calldata

Published Apr 16, 2023
·
Updated

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.

Affected Software

2 affected components
OpenZeppelin Contracts Node.js>=4.3.0<4.8.3
OpenZeppelin Contracts Upgradeable Node.js>=4.3.0<4.8.3

Event History

Apr 16, 2023
CVE Published
via MITRE·07:10 AM
Data Sourced
via MITRE·07:10 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-30542?

CVE-2023-30542 is a vulnerability in the OpenZeppelin Contracts library that allows the creation of proposals with a shorter signatures array than the calldatas array.

2

What is the severity of CVE-2023-30542?

The severity of CVE-2023-30542 is high with a CVSS score of 8.8.

3

How does CVE-2023-30542 affect OpenZeppelin Contracts?

CVE-2023-30542 affects OpenZeppelin Contracts versions between 4.3.0 and 4.8.3, allowing the creation of proposals with mismatched arrays.

4

How can I fix CVE-2023-30542?

To fix CVE-2023-30542, you should upgrade to OpenZeppelin Contracts version 4.8.3 or later.

5

Where can I find more information about CVE-2023-30542?

You can find more information about CVE-2023-30542 in the OpenZeppelin Contracts release notes and the associated security advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203