CVE-2024-32644
Evmos' transaction execution not accounting for all state transition after interaction with precompiles
Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is 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. 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. The issue has been patched in versions >=V17.0.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.1
Evmos' transaction execution not accounting for all state transition after interaction with precompiles
Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is 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. 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. The issue has been patched in versions >=V17.0.0.
- Record
CVE-2024-32644- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-662
- Updated
- 2026-11-02
EUVDEUVD-2024-1080
9.1
Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is 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. 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. The issue has been patched in versions >=V17.0.0.
- Record
EUVD-2024-1080- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3fp5-2xwh-fxm6
9.1
Evmos transaction execution not accounting for all state transition after interaction with precompiles
Context
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:originStorageanddirtyStorageStateDB: it is the general interface to retrieve accounts and holds a map of stateObjects.
Impact
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
dirtyStorageis committed to the KVStore without changing theoriginStorage. - Now, since we have a
dirtyStorage, it is updated to the previous value A without changing theoriginStorage.
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.
Severity
Based on ImmuneFi Severity Classification System the severity was evaluated to Critical since the attack could have lead to direct loss of funds.
Patches
The issue has been patched in versions >=V17.0.0.
For more information
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 [email protected] for security questions
- Record
GHSA-3fp5-2xwh-fxm6- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-662
- Updated
- 2026-11-02
NVD
9.1
Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is 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. 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. The issue has been patched in versions >=V17.0.0.
- Record
CVE-2024-32644- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-662
- Updated
- 2026-11-02
OSV
9.1
Evmos' transaction execution not accounting for all state transition after interaction with precompiles
Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is 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. 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. The issue has been patched in versions >=V17.0.0.
- Record
CVE-2024-32644- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-662
- Updated
- 2026-11-02
OSVGHSA-3fp5-2xwh-fxm6
9.1
Evmos transaction execution not accounting for all state transition after interaction with precompiles
Context
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:originStorageanddirtyStorageStateDB: it is the general interface to retrieve accounts and holds a map of stateObjects.
Impact
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
dirtyStorageis committed to the KVStore without changing theoriginStorage. - Now, since we have a
dirtyStorage, it is updated to the previous value A without changing theoriginStorage.
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.
Severity
Based on ImmuneFi Severity Classification System the severity was evaluated to Critical since the attack could have lead to direct loss of funds.
Patches
The issue has been patched in versions >=V17.0.0.
For more information
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 [email protected] for security questions
- Record
GHSA-3fp5-2xwh-fxm6- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-662
- Updated
- 2026-11-02
OSVGO-2024-2715 No score
Evmos transaction execution not accounting for all state transition after interaction with precompiles in github.com/evmos/evmos
Evmos transaction execution not accounting for all state transition after interaction with precompiles in github.com/evmos/evmos
- Record
GO-2024-2715- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/evmos/evmos/v16Go |
through 16.0.4 | 17.0.0 |
github.com/evmos/evmos/v7Go |
through 7.0.0 | None known |
github.com/evmos/evmos/v6Go |
through 6.0.4 | None known |
github.com/evmos/evmos/v5Go |
through 5.0.0 | None known |
github.com/tharsis/evmosGo |
through 1.1.3 | None known |
github.com/tharsis/evmos/v2Go |
through 2.0.2 | None known |
github.com/tharsis/evmos/v3Go |
through 3.0.3 | None known |
github.com/tharsis/evmos/v4Go |
through 4.0.2 | None known |
github.com/tharsis/evmos/v5Go |
through 5.0.1 | None known |
github.com/evmos/evmos/v16Go |
before 17.0.0 | 17.0.0 |
Show 22 moreShow less
| Package | Affected | Fixed |
|---|---|---|
github.com/evmos/evmosGo |
All versions | None known |
github.com/evmos/evmos/v2Go |
All versions | None known |
github.com/evmos/evmos/v3Go |
All versions | None known |
github.com/evmos/evmos/v4Go |
All versions | None known |
github.com/evmos/evmos/v5Go |
All versions | None known |
github.com/evmos/evmos/v6Go |
All versions | None known |
github.com/evmos/evmos/v7Go |
All versions | None known |
github.com/evmos/evmos/v8Go |
All versions | None known |
github.com/evmos/evmos/v9Go |
All versions | None known |
github.com/evmos/evmos/v10Go |
All versions | None known |
github.com/evmos/evmos/v11Go |
All versions | None known |
github.com/evmos/evmos/v12Go |
All versions | None known |
github.com/evmos/evmos/v13Go |
All versions | None known |
github.com/evmos/evmos/v14Go |
All versions | None known |
github.com/evmos/evmos/v15Go |
All versions | None known |
github.com/evmos/evmos/v16Go |
All versions | None known |
github.com/evmos/evmos/v17Go |
before 17.0.0 | 17.0.0 |
github.com/tharsis/evmosGo |
All versions | None known |
github.com/tharsis/evmos/v2Go |
All versions | None known |
github.com/tharsis/evmos/v3Go |
All versions | None known |
github.com/tharsis/evmos/v4Go |
All versions | None known |
github.com/tharsis/evmos/v5Go |
All versions | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-32644 is a critical vulnerability (CVSS 9.1) in Evmos, published April 10, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in github.com/evmos/evmos/v16 17.0.0.
References
github.com/evmos/evmos/security/advisories/GHSA-3fp5-2xwh-fxm6
github.com/evmos/evmos/commit/08982b5ee726b97bc50eaf58d1914829648b6a5f
github.com/evmos/evmos/blob/b196a522ba4951890b40992e9f97aa610f8b5f9c/x/evm/statedb/statedb.go
github.com/evmos/evmos/blob/b196a522ba4951890b40992e9f97aa610f8b5f9c/x/evm/statedb/state_object.go
nvd.nist.gov/vuln/detail/CVE-2024-32644
github.com/advisories/GHSA-3fp5-2xwh-fxm6
github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32644.json
github.com/evmos/evmos