Vulnerability DatabaseGHSA-8pfh-j44r-f654

GHSA-8pfh-j44r-f654
vulnerability analysis and mitigation

Overview

A critical vulnerability (GHSA-8pfh-j44r-f654) was discovered in the Cosmos EVM module affecting versions >= 0.3.0, < 0.3.2 and >= 0.4.0, < 0.4.2. The vulnerability was disclosed on October 21, 2025, and involves a critical state desynchronization issue between the Cosmos SDK's native bank module and the EVM's state database (GitHub Advisory).

Technical details

The vulnerability stems from two primary issues: an improper state reversion in the EVM's snapshot mechanism that failed to account for the SDK's EventManager, and shared global state issues in precompiles. The EVM's snapshot and revert mechanism did not properly handle event clearing from reverted operations, while a single shared instance of BalanceHandler was incorrectly used across all precompile executions within transactions. This combination allowed potential exploitation through crafted transactions triggering recursive precompile calls with reverts, leading to incorrect balance updates in the EVM's stateDB (Miggo).

Impact

The vulnerability could lead to a chain halt through state desynchronization between the Cosmos SDK's native bank module and the EVM's state database. This desynchronization could result in incorrect balance updates and potential exploitation of the system's state management (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions v0.3.1, v0.4.2, and v0.5.0. No workarounds are available for chains using static or dynamic precompiles, and upgrading is strongly recommended. The patches include modifications to StateDB.Snapshot and StateDB.RevertToSnapshot for correct event management, and the introduction of a BalanceHandlerFactory to prevent state corruption in recursive calls (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management