Improper Synchronization Affecting github.com/evmos/evmos/precompiles package, versions <17.0.0


Severity

Recommended
0.0
critical
0
10

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

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-GITHUBCOMEVMOSEVMOSPRECOMPILES-6595984
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE NOT AVAILABLE CWE-662  (opens in a new tab)

How to fix?

Upgrade github.com/evmos/evmos/precompiles to version 17.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Synchronization due to the interaction between stateObject and StateDB during transaction execution. An attacker can mint arbitrary tokens by exploiting the lack of synchronization between the Cosmos SDK state and the EVM state. This is achieved by manipulating the transaction execution process to have two different states not in sync, specifically by altering the contract storage state before and after a transaction while changing it during the transaction to call an external contract. This vulnerability could lead to a significant drain of funds through creative, smart contract interactions.

CVSS Scores

version 3.1