Privilege Escalation Affecting @openzeppelin/contracts package, versions >=4.0.0-beta.0 <4.3.1<3.4.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-OPENZEPPELINCONTRACTS-1570170
  • published27 Aug 2021
  • disclosed27 Aug 2021
  • creditUnknown

Introduced: 27 Aug 2021

CVE-2021-39167  (opens in a new tab)
CWE-264  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/contracts to version 4.3.1, 3.4.2 or higher.

Overview

@openzeppelin/contracts is a library for contract development.

Affected versions of this package are vulnerable to Privilege Escalation. A vulnerability in TimelockController allowed an actor with the executor role to escalate privileges.

As a workaround, revoke the executor role from accounts not strictly under the team's control. It is recommended to revoke all executors that are not also proposers. When applying this mitigation, ensure there is at least one proposer and executor remaining.

CVSS Scores

version 3.1