CVE-2021-39168: TimelockController vulnerability in OpenZeppelin Contracts
OpenZepplin is a library for smart contract development. In affected versions a vulnerability in TimelockController allowed an actor with the executor role to escalate privileges. Further details about the vulnerability will be disclosed at a later date. As a workaround revoke the executor role from accounts not strictly under the team's control. We recommend revoking all executors that are not also proposers. When applying this mitigation, ensure there is at least one proposer and executor remaining.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Revoke the TimelockController executor role from all accounts that are not strictly under the team's control (workaround: revoke executors that are not also proposers). Ensure there is at least one proposer and one executor remaining after the change.
OpenZeppelin Contracts TimelockController executor role assignment = Revoke executor role from accounts that are not strictly under the team's control
Event History
Frequently Asked Questions
What is the severity of CVE-2021-39168?
The severity of CVE-2021-39168 is critical.
What is the affected software version range for CVE-2021-39168?
The affected software versions for CVE-2021-39168 are between 3.3.0 and 3.4.2, and between 4.0.0 and 4.3.1.
What is the workaround for CVE-2021-39168?
As a workaround for CVE-2021-39168, revoke the executor role from the affected TimelockController.
Where can I find more information about CVE-2021-39168?
You can find more information about CVE-2021-39168 in the following references: [Link 1](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/security/advisories/GHSA-vrw4-w73r-6mm8), [Link 2](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md#431), [Link 3](https://github.com/OpenZeppelin/openzeppelin-contracts/commit/cec4f2ef57495d8b1742d62846da212515d99dd5).
What is the CWE ID for CVE-2021-39168?
The CWE ID for CVE-2021-39168 is 269.