Advisory

GHSA-5h3x-9wvq-w4m2

Also known as: CVE-2023-34234

Summary

OpenZeppelin Contracts's governor proposal creation may be blocked by frontrunning

Details

Impact

By frontrunning the creation of a proposal, an attacker can become the proposer and gain the ability to cancel it. The attacker can do this repeatedly to try to prevent a proposal from being proposed at all.

This impacts the Governor contract in v4.9.0 only, and the GovernorCompatibilityBravo contract since v4.3.0.

Patches

The problem has been patched in 4.9.1 by introducing opt-in frontrunning protection.

Workarounds

Submit the proposal creation transaction to an endpoint with frontrunning protection.

Credit

Reported by Lior Abadi and Joaquin Pereyra from Coinspect.

References

https://www.coinspect.com/openzeppelin-governor-dos/

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-06-08 18:03 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

@openzeppelin/contracts

npm · All systems

Affected

  • introduced 4.3.0, fixed 4.9.1 (semver)

Fixed versions

4.9.1

Fix

@openzeppelin/contracts-upgradeable

npm · All systems

Affected

  • introduced 4.3.0, fixed 4.9.1 (semver)

Fixed versions

4.9.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences