{"id":"CVE-2023-30542","summary":"GovernorCompatibilityBravo may trim proposal calldata","details":"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.","aliases":["GHSA-93hq-5wgc-jc82"],"modified":"2026-04-15T04:40:15.902463Z","published":"2023-04-16T07:10:13.474Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30542.json","cwe_ids":["CWE-20"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30542.json"},{"type":"ADVISORY","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-93hq-5wgc-jc82"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30542"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openzeppelin/openzeppelin-contracts","events":[{"introduced":"1d2e15fbd7314f4f60b47d97d9b852aacd5404f7"},{"fixed":"0a25c1940ca220686588c4af3ec526f725fe2582"}],"database_specific":{"extracted_events":[{"introduced":"4.3.0"},{"fixed":"4.8.3"}],"source":["CPE_FIELD","REFERENCES"],"cpe":["cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*","cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*"]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-30542.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L"}]}