CVE-2023-30542Openzeppelin Contracts
High 8.8
Follow: this CVE · Openzeppelin · Openzeppelin Contracts We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 51
- Auth required
- Yes
- Published
- Apr 16, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Contracts.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @openzeppelin/contracts |
≥ 4.3.0 < 4.8.3 |
4.8.3 |
npm install @openzeppelin/contracts@4.8.3 |
| npm | @openzeppelin/contracts-upgradeable |
≥ 4.3.0 < 4.8.3 |
4.8.3 |
npm install @openzeppelin/contracts-upgradeable@4.8.3 |
Per OSV / GitHub Advisories (GHSA-93hq-5wgc-jc82). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | ≥ 4.3.0 < 4.8.3 |
| openzeppelin | contracts_upgradeable | ≥ 4.3.0 < 4.8.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Vendor Advisory