Live threats

All CVEs / Openzeppelin

CVE-2021-39168Openzeppelin Contracts

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
No
Published
Aug 27, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-269
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Contracts.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @openzeppelin/contracts-upgradeable ≥ 4.0.0 < 4.3.1 4.3.1 npm install @openzeppelin/contracts-upgradeable@4.3.1
npm @openzeppelin/contracts-upgradeable ≥ 3.3.0 < 3.4.2 3.4.2 npm install @openzeppelin/contracts-upgradeable@3.4.2

Per OSV / GitHub Advisories (GHSA-vrw4-w73r-6mm8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openzeppelincontracts≥ 3.3.0 < 3.4.2
openzeppelincontracts≥ 4.0.0 < 4.3.1

Official sources

References

Links published by the sources. Open them with care.