Incorrect Calculation Affecting @openzeppelin/contracts-upgradeable package, versions >=4.3.0 <4.7.2


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.06% (29th 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-OPENZEPPELINCONTRACTSUPGRADEABLE-2964947
  • published2 Aug 2022
  • disclosed2 Aug 2022
  • creditUnknown

Introduced: 2 Aug 2022

CVE-2022-31198  (opens in a new tab)
CWE-682  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/contracts-upgradeable to version 4.7.2 or higher.

Overview

@openzeppelin/contracts-upgradeable is a Secure Smart Contract library for Solidity.

Affected versions of this package are vulnerable to Incorrect Calculation via the GovernorVotesQuorumFraction module. This vulnerability is exploitable by passing a proposal to lower the quorum requirements, leading to past proposals possibly becoming executable if they had been defeated only due to lack of quorum, and the number of votes it received meets the new quorum requirement.

Mitigation:

Users unable to upgrade should consider avoiding lowering quorum requirements if a past proposal was defeated for lack of quorum.

CVSS Scores

version 3.1