CVE-2021-39167: OpenZepplin - Privilege Escalation
- Cve: CVE-2021-39167
- Name: OpenZepplin - Privilege Escalation
- 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.
- Impact: Attackers with executor role can escalate privileges, potentially gaining full control over smart contracts.
- Remediation: Revoke the executor role from accounts not under the team's control, ensuring at least one proposer and executor remain.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs to have the executor role
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0159
- Epss percentile: 0.76288
- Assignee: [email protected]
- Published at: 2021-08-27T00:15:06Z
- Age in days: 1915
- Modified at: 2026-06-17T04:03:14Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39167
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-269 | Improper Privilege Management |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md#431 | Patch, Release Notes, Third Party Advisory |
| https://github.com/OpenZeppelin/openzeppelin-contracts/commit/cec4f2ef57495d8b1742d62846da212515d99dd5 | Patch, Third Party Advisory |
| https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-fg47-3c2x-m2wr | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| openzeppelin:contracts | >= 4.0.0, < 4.3.1; >= 3.3.0, < 3.4.2 | no | nvd | /v1/products/openzeppelin/contracts |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| openzeppelin/openzeppelin-contracts | commit, fix, package, security_advisory | yes | /v1/repositories/openzeppelin/openzeppelin-contracts |
Index
- Repositories: 37
- Repositories high signal: 20
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts