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


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

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 ID SNYK-GOLANG-GITHUBCOMEVMOSEVMOSV16PRECOMPILES-6595986
  • published 15 Apr 2024
  • disclosed 10 Apr 2024
  • credit Unknown

Introduced: 10 Apr 2024

CVE NOT AVAILABLE CWE-662 Open this link in a new tab

How to fix?

Upgrade github.com/evmos/evmos/v16/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
Expand this section

Snyk

Recommended
9.1 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    High
  • Availability (A)
    High