{"id":"CVE-2023-30542","published":"2023-04-16T07:10:13Z","modified":"2025-02-06T16:05:37Z","title":"GovernorCompatibilityBravo may trim proposal calldata","vendor":"OpenZeppelin","product":"openzeppelin-contracts","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00752,"percentile":0.51215,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-93hq-5wgc-jc82","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.24},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"openzeppelin","affectedVersions":[{"vendor":"OpenZeppelin","product":"openzeppelin-contracts","versions":[">= 4.3.0, < 4.8.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-06T16:05:08.341780Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@openzeppelin/contracts","vulnerableRanges":[">=4.3.0, <4.8.3"],"patched":["4.8.3"],"from":["GHSA-93hq-5wgc-jc82"],"provenance":"source"},{"ecosystem":"npm","package":"@openzeppelin/contracts-upgradeable","vulnerableRanges":[">=4.3.0, <4.8.3"],"patched":["4.8.3"],"from":["GHSA-93hq-5wgc-jc82"],"provenance":"source"}],"summary":{"text":"The flaw is in the propose entrypoint of GovernorCompatibilityBravo in OpenZeppelin's openzeppelin-contracts library, which accepts a signatures array shorter than the calldatas array, causing the extra calldata entries to be silently dropped. An attacker who can submit a governance proposal (with a low-privilege account and user interaction required from a voter) can cause actions to execute with empty calldata, even though the ProposalCreated event and getActions query may appear to show the intended calldata.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:43Z"},"euvd":{"id":"EUVD-2023-1247","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-35961","published":"2022-08-14","fixed":"4.7.3","kev":false},{"cve":"CVE-2023-26488","published":"2023-03-03","fixed":"4.8.2","kev":false,"link":{"from":"CVE-2023-26488","to":"CVE-2023-30542","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":44},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":44}]}},{"cve":"CVE-2023-30541","published":"2023-04-17","fixed":"4.8.3","kev":false},{"cve":"CVE-2023-30542","published":"2023-04-16","fixed":"4.8.3","kev":false},{"cve":"CVE-2023-34234","published":"2023-06-07","fixed":"4.9.1","kev":false},{"cve":"CVE-2023-34459","published":"2023-06-16","fixed":"4.9.2","kev":false},{"cve":"CVE-2023-40014","published":"2023-08-10","fixed":"4.9.3","kev":false}],"package":"npm:@openzeppelin/contracts"}}