CVE-2021-39168
TimelockController vulnerability in OpenZeppelin Contracts
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | @openzeppelin/contracts-upgradeable | 4.3.1, 3.4.2 |
References
- https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeabl
- https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/security/advisories/GHSA-vrw4-w73r-6mm8
- https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md#431
- https://github.com/OpenZeppelin/openzeppelin-contracts/commit/cec4f2ef57495d8b1742d62846da212515d99dd5
- https://nvd.nist.gov/vuln/detail/CVE-2021-39168