GovernorCompatibilityBravo may trim proposal calldata (OpenZeppelin openzeppelin-contracts)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.58 % Β· percentile 48 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-20 β Improper Input Validation
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L | GitHub_M |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L | NVD Β· security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-93hq-5wgc-jc82 β GovernorCompatibilityBravo may trim proposal calldata
European references
- ENISA EUVD Β· EUVD-2023-1247
- GCVE Β· GCVE-0-2023-30542
Affected configurations (NVD CPE)
cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*β₯ 4.3.0 < 4.8.3cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*β₯ 4.3.0 < 4.8.3
Affected products
| Product | Versions |
|---|---|
| OpenZeppelin Β· openzeppelin-contracts | affected >= 4.3.0, < 4.8.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |