GHSA-54gx-3cgr-7mfm: Cosmos EVM Incorrect State Handling During Nested Vulnerability

CRITICAL
CWE-670
Published
Advisory Summary

GHSA-54gx-3cgr-7mfm is a CRITICAL incorrect state handling during nested vulnerability (CWE-670: Always-Incorrect Control Flow Implementation) affecting Cosmos EVM libraries in the Go ecosystem. The issue involves incorrect state handling during nested evm execution paths. Remediation is available by upgrading affected packages to version 0.6.0.

GHSA-54gx-3cgr-7mfm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-54gx-3cgr-7mfm
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-670: Always-Incorrect Control Flow Implementation
Affected Product Cosmos EVM
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-54gx-3cgr-7mfm

To remediate this vulnerability, upgrade all affected Cosmos EVM dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/cosmos/evm fixed: 0.6.0
Upgrade github.com/cosmos/evm to 0.6.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/cosmos/evm

How to Check if You Are Affected

To determine whether your application is affected by GHSA-54gx-3cgr-7mfm, inspect your project dependencies for Cosmos EVM:

inspect dependencies for github.com/cosmos/evm

Analyze the terminal output to locate any version of Cosmos EVM in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-670: Always-Incorrect Control Flow Implementation, where the code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated. In Cosmos EVM, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Advisory ID:** ASA-2026-002 **Component:** ICS20 Precompile **Status:** Resolved **Published:** March 2026 **Contact:** [security@cosmoslabs.io](mailto:security@cosmoslabs.io) --- # Security Advisory ASA-2026-002 **Status: Resolved. A patch is available and all known affected chains have either applied mitigations or [upgraded](https://github.com/cosmos/evm/releases/tag/v0.6.0).** | Field | Value | | --- | --- | | **Severity** | Critical | | **Affected Component** | ICS20 Precompile | | **Affected Versions** | Cosmos EVM implementations including the ICS20 precompile | | **Patched Version** | [v0.6.0](https://github.com/cosmos/evm/releases/tag/v0.6.0) | | **First Reported** | January 21, 2026 | | **Public Disclosure** | March 2026 | --- ## Introduction Recently, there was a vulnerability affecting a feature used by some chains built on the Cosmos EVM stack. Working together with ecosystem partners and affected teams, particularly Saga, B-Harvest, Mantra, Zellic and Sherlock, Cosmos Labs investigated the issue, coordinated mitigations, developed a permanent fix, and issued a patch to affected chains. We appreciate the collaboration of the teams who assisted during the investigation and response process and thank our ecosystem partners for their support in coordinating mitigation and validation efforts. --- ## Remediation Summary On January 21, 2026, Cosmos Labs was notified of suspicious activity on a network running the affected implementation. The issue resulted in financial loss on the Saga EVM network. After confirming the vulnerability, Cosmos Labs coordinated with the affected chain team and ecosystem partners to investigate the issue, deploy mitigations, and assist other chains running the affected code. Cosmos Labs contacted chains known to be running versions containing the affected component to verify their configurations and support mitigation where necessary. At the time of publication, all known affected chains have either applied mitigations or upgraded to a patched version. --- ## Root Cause The vulnerability was caused by incorrect state handling during nested EVM execution paths involving the ICS20 precompile. Under certain execution conditions, state updates performed during recursive calls were not correctly reflected in the outer execution context. This could allow repeated use of the same token balance within a single transaction. --- ## Mitigation As an immediate mitigation, chains were advised to disable the ICS20 precompile through a coordinated upgrade. Cosmos Labs assisted ecosystem teams in verifying whether their chains were affected and in applying the mitigation where required. - 15 chains were identified as running code containing the issue - 6 chains did not have the affected feature enabled - The remaining chains implemented the mitigation before exploitation occurred - 1 chain experienced an exploit prior to mitigation --- ## Long-Term Fix A permanent fix was implemented to ensure state consistency across nested EVM execution paths. The patch was distributed privately to affected teams for validation and later released publicly. The fix is included in **[v0.6.0](https://github.com/cosmos/evm/releases/tag/v0.6.0)**. --- ## Am I Affected? Chains may be affected if they: - Run versions of the Cosmos EVM stack that include the ICS20 precompile implementation - Have the ICS20 precompile enabled - Have not upgraded to **v0.6.0** or applied the mitigation Chains that have upgraded to **v0.6.0** or have disabled the ICS20 precompile are **not vulnerable to this issue**. If you are unsure whether your chain is affected, please contact: **[security@cosmoslabs.io](mailto:security@cosmoslabs.io)** --- ## Timeline **July 2024** The code containing the vulnerability was introduced upstream. **January 21, 2026** A network running the affected implementation experienced an exploit. The incident resulted in an estimated loss of approximately **$7M** on that network. **January 21, 2026** Cosmos Labs was notified of the potential vulnerability and began investigating. **January 21–22, 2026** The issue was reproduced and an initial mitigation was identified. **Late January 2026** Root cause analysis was conducted and a long-term fix was developed. **Early February 2026** The fix was validated internally and shared privately with affected ecosystem teams for review and testing. **Mid February 2026** Patches and mitigation guidance were distributed to chains running affected code. **March 2026** The permanent fix was released publicly as part of **v0.6.0**. --- ## Acknowledgements We would like to thank the teams and security partners who collaborated with us during the investigation and remediation process, including contributors from: - Saga - B-Harvest - Mantra - Zellic - Sherlock Their collaboration and responsiveness helped accelerate investigation, validation of the fix, and coordinated mitigation across affected chains. --- ## Strengthening Security Processes Following this incident, Cosmos Labs is implementing several improvements to further strengthen the security of the Cosmos EVM stack, including: - Expanded fuzz testing focused on complex execution paths - Additional auditing of state management logic across EVM integrations - Improvements to testing frameworks for precompile functionality - Continued collaboration with ecosystem security partners - Increased our bug bounty payouts for our [security program](https://hackerone.com/cosmos) These improvements are designed to reduce the likelihood of similar issues and ensure that teams building on the Cosmos stack can continue to rely on secure and well-tested infrastructure. --- ## Disclosure and Coordination Cosmos Labs coordinated with ecosystem partners and affected teams to investigate the issue, validate mitigations, and distribute the permanent fix prior to public disclosure. We appreciate the collaboration of ecosystem teams who assisted with investigation, validation, and responsible remediation of this issue. --- ## Responsible Disclosure Cosmos Labs encourages responsible disclosure of potential vulnerabilities. Security researchers who discover a potential issue are encouraged to report it privately so it can be investigated and addressed responsibly. Reports can be submitted to: **[security@cosmoslabs.io](mailto:security@cosmoslabs.io)** Information about Cosmos Labs security programs and responsible disclosure practices, including bug bounty opportunities, will be made available through Cosmos Labs security channels, which can be signed up for [here](https://docs.google.com/forms/d/1Ae6ruTAw9zRoeN0xFxNbTfS-xCFdO68NGRsyFAeWHMc/edit).

GHSA-54gx-3cgr-7mfm Affected Cosmos EVM Versions

1 component(s)
Fixed Versions:
0.6.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cosmos/evm
Go
< 0.6.0
0.6.0

References

Frequently Asked Questions

What is GHSA-54gx-3cgr-7mfm?
GHSA-54gx-3cgr-7mfm is a security vulnerability in Cosmos EVM involving incorrect state handling during nested EVM execution paths under CWE-670: Always-Incorrect Control Flow Implementation.
Which Cosmos EVM versions are affected?
Affected versions include releases prior to 0.6.0 across affected packages: github.com/cosmos/evm.
What version fixes GHSA-54gx-3cgr-7mfm?
Upgrading to 0.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cosmos/evm affected?
Yes, github.com/cosmos/evm is affected in releases prior to 0.6.0. Upgrade your dependency to 0.6.0 or later.
What CWE is associated with GHSA-54gx-3cgr-7mfm?
GHSA-54gx-3cgr-7mfm is classified under CWE-670: Always-Incorrect Control Flow Implementation (The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.).
How can I check Go dependencies for GHSA-54gx-3cgr-7mfm?
Run the dependency tree command: 'inspect dependencies for github.com/cosmos/evm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-54gx-3cgr-7mfm",
  "modified" : "2026-03-11T14:53:51Z",
  "published" : "2026-03-11T14:53:51Z",
  "aliases" : [ ],
  "summary" : "Cosmos EVM: incorrect state handling during nested EVM execution paths",
  "details" : "**Advisory ID:** ASA-2026-002\n\n**Component:** ICS20 Precompile\n\n**Status:** Resolved\n\n**Published:** March 2026\n\n**Contact:** [security@cosmoslabs.io](mailto:security@cosmoslabs.io)\n\n---\n\n# Security Advisory ASA-2026-002\n\n**Status: Resolved. A patch is available and all known affected chains have either applied mitigations or [upgraded](https://github.com/cosmos/evm/releases/tag/v0.6.0).**\n\n| Field | Value |\n| --- | --- |\n| **Severity** | Critical |\n| **Affected Component** | ICS20 Precompile |\n| **Affected Versions** | Cosmos EVM implementations including the ICS20 precompile |\n| **Patched Version** | [v0.6.0](https://github.com/cosmos/evm/releases/tag/v0.6.0) |\n| **First Reported** | January 21, 2026 |\n| **Public Disclosure** | March 2026 |\n\n---\n\n## Introduction\n\nRecently, there was a vulnerability affecting a feature used by some chains built on the Cosmos EVM stack.  Working together with ecosystem partners and affected teams, particularly Saga, B-Harvest, Mantra, Zellic and Sherlock, Cosmos Labs  investigated the issue, coordinated mitigations, developed a permanent fix, and issued a patch to affected chains.\n\nWe appreciate the collaboration of the teams who assisted during the investigation and response process and thank our ecosystem partners for their support in coordinating mitigation and validation efforts.\n\n---\n\n## Remediation Summary\n\nOn January 21, 2026, Cosmos Labs was notified of suspicious activity on a network running the affected implementation. The issue resulted in financial loss on the Saga EVM network.\n\nAfter confirming the vulnerability, Cosmos Labs coordinated with the affected chain team and ecosystem partners to investigate the issue, deploy mitigations, and assist other chains running the affected code.\n\nCosmos Labs contacted chains known to be running versions containing the affected component to verify their configurations and support mitigation where necessary. At the time of publication, all known affected chains have either applied mitigations or upgraded to a patched version.\n\n---\n\n## Root Cause\n\nThe vulnerability was caused by incorrect state handling during nested EVM execution paths involving the ICS20 precompile.\n\nUnder certain execution conditions, state updates performed during recursive calls were not correctly reflected in the outer execution context. This could allow repeated use of the same token balance within a single transaction.\n\n---\n\n## Mitigation\n\nAs an immediate mitigation, chains were advised to disable the ICS20 precompile through a coordinated upgrade.\n\nCosmos Labs assisted ecosystem teams in verifying whether their chains were affected and in applying the mitigation where required.\n\n- 15 chains were identified as running code containing the issue\n- 6 chains did not have the affected feature enabled\n- The remaining chains implemented the mitigation before exploitation occurred\n- 1 chain experienced an exploit prior to mitigation\n\n---\n\n## Long-Term Fix\n\nA permanent fix was implemented to ensure state consistency across nested EVM execution paths. The patch was distributed privately to affected teams for validation and later released publicly.\n\nThe fix is included in **[v0.6.0](https://github.com/cosmos/evm/releases/tag/v0.6.0)**.\n\n---\n\n## Am I Affected?\n\nChains may be affected if they:\n\n- Run versions of the Cosmos EVM stack that include the ICS20 precompile implementation\n- Have the ICS20 precompile enabled\n- Have not upgraded to **v0.6.0** or applied the mitigation\n\nChains that have upgraded to **v0.6.0** or have disabled the ICS20 precompile are **not vulnerable to this issue**.\n\nIf you are unsure whether your chain is affected, please contact:\n\n**[security@cosmoslabs.io](mailto:security@cosmoslabs.io)**\n\n---\n\n## Timeline\n\n**July 2024**\n\nThe code containing the vulnerability was introduced upstream.\n\n**January 21, 2026**\n\nA network running the affected implementation experienced an exploit. The incident resulted in an estimated loss of approximately **$7M** on that network.\n\n**January 21, 2026**\n\nCosmos Labs was notified of the potential vulnerability and began investigating.\n\n**January 21–22, 2026**\n\nThe issue was reproduced and an initial mitigation was identified.\n\n**Late January 2026**\n\nRoot cause analysis was conducted and a long-term fix was developed.\n\n**Early February 2026**\n\nThe fix was validated internally and shared privately with affected ecosystem teams for review and testing.\n\n**Mid February 2026**\n\nPatches and mitigation guidance were distributed to chains running affected code.\n\n**March 2026**\n\nThe permanent fix was released publicly as part of **v0.6.0**.\n\n---\n\n## Acknowledgements\n\nWe would like to thank the teams and security partners who collaborated with us during the investigation and remediation process, including contributors from:\n\n- Saga\n- B-Harvest\n- Mantra\n- Zellic\n- Sherlock\n\nTheir collaboration and responsiveness helped accelerate investigation, validation of the fix, and coordinated mitigation across affected chains.\n\n---\n\n## Strengthening Security Processes\n\nFollowing this incident, Cosmos Labs is implementing several improvements to further strengthen the security of the Cosmos EVM stack, including:\n\n- Expanded fuzz testing focused on complex execution paths\n- Additional auditing of state management logic across EVM integrations\n- Improvements to testing frameworks for precompile functionality\n- Continued collaboration with ecosystem security partners\n- Increased our bug bounty payouts for our [security program](https://hackerone.com/cosmos)\n\nThese improvements are designed to reduce the likelihood of similar issues and ensure that teams building on the Cosmos stack can continue to rely on secure and well-tested infrastructure.\n\n---\n\n## Disclosure and Coordination\n\nCosmos Labs coordinated with ecosystem partners and affected teams to investigate the issue, validate mitigations, and distribute the permanent fix prior to public disclosure.\n\nWe appreciate the collaboration of ecosystem teams who assisted with investigation, validation, and responsible remediation of this issue.\n\n---\n\n## Responsible Disclosure\n\nCosmos Labs encourages responsible disclosure of potential vulnerabilities.\n\nSecurity researchers who discover a potential issue are encouraged to report it privately so it can be investigated and addressed responsibly.\n\nReports can be submitted to:\n\n**[security@cosmoslabs.io](mailto:security@cosmoslabs.io)**\n\nInformation about Cosmos Labs security programs and responsible disclosure practices, including bug bounty opportunities, will be made available through Cosmos Labs security channels, which can be signed up for [here](https://docs.google.com/forms/d/1Ae6ruTAw9zRoeN0xFxNbTfS-xCFdO68NGRsyFAeWHMc/edit).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cosmos/evm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/evm/security/advisories/GHSA-54gx-3cgr-7mfm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cosmos/evm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/evm/releases/tag/v0.6.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-670" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-11T14:53:51Z",
    "nvd_published_at" : null
  }
}