Incorrect Calculation Affecting github.com/evmos/evmos/v18/precompiles/staking package, versions <18.0.0


Severity

Recommended
0.0
low
0
10

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

Threat Intelligence

EPSS
0.05% (16th 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-GOLANG-GITHUBCOMEVMOSEVMOSV18PRECOMPILESSTAKING-7222573
  • published9 Jun 2024
  • disclosed6 Jun 2024
  • creditUnknown

Introduced: 6 Jun 2024

CVE-2024-32873  (opens in a new tab)
CWE-682  (opens in a new tab)

How to fix?

Upgrade github.com/evmos/evmos/v18/precompiles/staking to version 18.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation through the TrackDelegation function. An attacker can manipulate the spendable balance by delegating vested tokens that should not yet be available. This is only exploitable if the account has a clawback vesting account with a specific vesting schedule.

Workaround

This vulnerability can be mitigated by implementing additional checks in the MsgServer of a wrapper around the Cosmos SDK staking module.

References

CVSS Scores

version 3.1