Loading advisory.
Loading advisory.
Evmos transaction execution not accounting for all state transition after interaction with precompiles
stateObject: represents the state of an account and is used to store its updates during a state transition. This is accomplished using two in memory Storage variables: originStorage and dirtyStorage StateDB: it is the general interface to retrieve accounts and holds a map of stateObjects.
Published 2024-04-10 22:04 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/evmos/evmos/v16 | Go | < 17.0.0 all versions | 17.0.0 | go get github.com/evmos/evmos/v16@v17.0.0 |
| github.com/evmos/evmos/v7 | Go | <= 7.0.0 all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v6 | Go | <= 6.0.4 all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v5 | Go | <= 5.0.0 all versions | No patch yet | No command until a fix exists. |
| github.com/tharsis/evmos | Go | <= 1.1.3 all versions | No patch yet | No command until a fix exists. |
| github.com/tharsis/evmos/v2 | Go | <= 2.0.2 all versions | No patch yet | No command until a fix exists. |
| github.com/tharsis/evmos/v3 | Go | <= 3.0.3 all versions | No patch yet | No command until a fix exists. |
| github.com/tharsis/evmos/v4 | Go | <= 4.0.2 all versions | No patch yet | No command until a fix exists. |
| github.com/tharsis/evmos/v5 | Go | <= 5.0.1 all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v2 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v3 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v4 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v8 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v9 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v10 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v11 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v12 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v13 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v14 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v15 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v17 | Go | < 17.0.0 | 17.0.0 | go get github.com/evmos/evmos/v17@v17.0.0 |
stateObject: represents the state of an account and is used to store its updates during a state transition. This is accomplished using two in memory Storage variables: originStorage and dirtyStorage
StateDB: it is the general interface to retrieve accounts and holds a map of stateObjects.
An external contributor, @iczc, discovered a way to mint arbitrary tokens due to the possibility to have two different states not in sync during the execution of a transaction. The exploit is based on the fact that to sync the Cosmos SDK state and the EVM one, we rely on the stateDB.Commit() method. When we call this method, we iterate though all the dirtyStorage and, if and only if it is different than the originStorage, we set the new state. Setting the new state means we update the Cosmos SDK KVStore.
Below, are described the steps to perform the attack:
User send a tx to a smart contract (SC) that is calling a precompile.
The SC perform a state transition of its state from A to B.
The SC call the precompile.
The SC perform a state transition of its state from B to A (revert of the previous).
Once the transaction is executed, and the final Commit is performed, the state A will not be committed to the store because A is the same as originStorage.
If the tx is executed correctly, this is what happens at the store level:
Initial state A is loaded from the KVStore and the dirtyStorage is set to B.
Before running the precompile, the dirtyStorage is committed to the KVStore without changing the originStorage.
Now, since we have a dirtyStorage, it is updated to the previous value A without changing the originStorage.
Since the tx executed correctly, the evm calls the commit to persist the dirtyStorage. However, since dirtyStorage is equal to originStorage, nothing will be changed.
To summarize, if a contract storage state that is the same before and after a transaction, but is changed during the transaction and can call an external contract after the change, it can be exploited to make the transaction similar to non-atomic. The vulnerability is critical since this could lead to drain of funds through creative SC interactions.
Based on ImmuneFi Severity Classification System the severity was evaluated to Critical since the attack could have lead to direct loss of funds.
The issue has been patched in versions >=V17.0.0.
If you have any questions or comments about this advisory:
Reach out to the Core Team in Discord Open a discussion in evmos/evmos Email us at security@evmos.org for security questions
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.009 on 2026-11-24 to 0.014 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.009 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.009 | v2026.06.15 |