GHSA-79xg-q4qm-7v9w: CWA-2025-006 Wasmd's Improper Error Handling May Vulnerability

HIGH
Published
Advisory Summary

GHSA-79xg-q4qm-7v9w is a HIGH wasmd's improper error handling may vulnerability (General Security Weakness) affecting CWA-2025-006 libraries in the Go ecosystem. The issue involves wasmd's improper error handling may lead to ibc channel opening despite error. Remediation is available by upgrading affected packages to version 0.60.1, 0.55.1, 0.54.1, 0.53.3.

GHSA-79xg-q4qm-7v9w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-79xg-q4qm-7v9w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product CWA-2025-006
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-79xg-q4qm-7v9w

To remediate this vulnerability, upgrade all affected CWA-2025-006 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/CosmWasm/wasmd fixed: 0.60.1
Upgrade github.com/CosmWasm/wasmd to 0.60.1
github.com/CosmWasm/wasmd fixed: 0.55.1
Upgrade github.com/CosmWasm/wasmd to 0.55.1
github.com/CosmWasm/wasmd fixed: 0.54.1
Upgrade github.com/CosmWasm/wasmd to 0.54.1
github.com/CosmWasm/wasmd fixed: 0.53.3
Upgrade github.com/CosmWasm/wasmd to 0.53.3
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/CosmWasm/wasmd

How to Check if You Are Affected

To determine whether your application is affected by GHSA-79xg-q4qm-7v9w, inspect your project dependencies for CWA-2025-006:

inspect dependencies for github.com/CosmWasm/wasmd

Analyze the terminal output to locate any version of CWA-2025-006 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.60.1), 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 General Security Weakness. In CWA-2025-006, 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

# CWA-2025-006: Improper error handling may lead to IBC channel opening despite error **Severity** High (Considerable + Likely)[^1] **Affected versions:** - wasmd 0.60.0 - wasmd >= 0.51.0 < 0.55.1 **Patched versions:** - wasmd 0.60.1, 0.55.1, 0.54.1, 0.53.3 ## Description of the bug A contract erroring during IBC channel opening does not prevent the channel from opening. ## Applying the patch The patch will be shipped in a wasmd release. You will also have to update `libwasmvm` if you build statically. If you already use the latest / close to latest wasmd, you can update more or less as follows: 1. Check the current wasmd version: `go list -m github.com/CosmWasm/wasmd` 2. Bump the `github.com/CosmWasm/wasmd` dependency in your go.mod to 0.60.1 (Cosmos SDK 0.53 compatible), 0.55.1 (Cosmos SDK 0.50 compatible), 0.54.1 or 0.53.3; `go mod tidy`; commit. 3. If you use the static libraries `libwasmvm_muslc.aarch64.a`/`libwasmvm_muslc.x86_64.a`, make sure that you use the same version as your wasmvm version. 4. Check the updated wasmd version: `go list -m github.com/CosmWasm/wasmd` and ensure you see 0.60.1, 0.55.1, 0.54.1 or 0.53.3. 5. Follow your regular practices to deploy chain upgrades. The patch is consensus breaking. ## Acknowledgement This problem was discovered during an audit of the CosmWasm stack performed by Sherlock and funded by ICF/ICL in Q1 2025. Thank you for that work! If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see <https://hackerone.com/cosmos>. ## Timeline - 2025-03-03: Auditor informs Confio about this issue. - 2025-04-10: Confio developed the patch internally. - 2025-06-05: Upcoming patch is announced. - 2025-06-10: Patch is released. [^1]: following Amulet's Severity Classification Framework ACMv1.2: <https://github.com/interchainio/security/blob/0295254e8645301ccb606d46108a45cede0a73e0/resources/CLASSIFICATION_MATRIX.md>

GHSA-79xg-q4qm-7v9w Affected CWA-2025-006 Versions

4 component(s)
Fixed Versions:
0.60.10.55.10.54.10.53.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/CosmWasm/wasmd
Go
≥ 0.60.0
< 0.60.1
All 1 versions
0.60.0
0.60.1
github.com/CosmWasm/wasmd
Go
≥ 0.55.0
< 0.55.1
0.55.1
github.com/CosmWasm/wasmd
Go
≥ 0.54.0
< 0.54.1
0.54.1
github.com/CosmWasm/wasmd
Go
≥ 0.51.0
< 0.53.3
0.53.3

References

Frequently Asked Questions

What is GHSA-79xg-q4qm-7v9w?
GHSA-79xg-q4qm-7v9w is a security vulnerability in CWA-2025-006 involving wasmd's improper error handling may lead to IBC channel opening despite error under General Security Weakness.
Which CWA-2025-006 versions are affected?
Affected versions include releases prior to 0.60.1, 0.55.1, 0.54.1, 0.53.3 across affected packages: github.com/CosmWasm/wasmd.
What version fixes GHSA-79xg-q4qm-7v9w?
Upgrading to 0.60.1, 0.55.1, 0.54.1, 0.53.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/CosmWasm/wasmd affected?
Yes, github.com/CosmWasm/wasmd is affected in releases prior to 0.60.1, 0.55.1, 0.54.1, 0.53.3. Upgrade your dependency to 0.60.1, 0.55.1, 0.54.1, 0.53.3 or later.
What CWE is associated with GHSA-79xg-q4qm-7v9w?
GHSA-79xg-q4qm-7v9w is classified under General Security Weakness.
How can I check Go dependencies for GHSA-79xg-q4qm-7v9w?
Run the dependency tree command: 'inspect dependencies for github.com/CosmWasm/wasmd'. 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-79xg-q4qm-7v9w",
  "modified" : "2025-06-11T14:44:39Z",
  "published" : "2025-06-11T14:44:38Z",
  "aliases" : [ ],
  "summary" : "CWA-2025-006: wasmd's improper error handling may lead to IBC channel opening despite error",
  "details" : "# CWA-2025-006: Improper error handling may lead to IBC channel opening despite error\n\n**Severity**\n\nHigh (Considerable + Likely)[^1]\n\n**Affected versions:**\n\n- wasmd 0.60.0\n- wasmd >= 0.51.0 < 0.55.1\n\n**Patched versions:**\n\n- wasmd 0.60.1, 0.55.1, 0.54.1, 0.53.3\n\n## Description of the bug\n\nA contract erroring during IBC channel opening does not prevent the channel from opening.\n\n## Applying the patch\n\nThe patch will be shipped in a wasmd release. You will also have to update `libwasmvm` if you build statically.\nIf you already use the latest / close to latest wasmd, you can update more or less as follows:\n\n1. Check the current wasmd version: `go list -m github.com/CosmWasm/wasmd`\n2. Bump the `github.com/CosmWasm/wasmd` dependency in your go.mod to 0.60.1 (Cosmos SDK 0.53 compatible), 0.55.1 (Cosmos SDK 0.50 compatible), 0.54.1 or 0.53.3; `go mod tidy`; commit.\n3. If you use the static libraries `libwasmvm_muslc.aarch64.a`/`libwasmvm_muslc.x86_64.a`, make sure that you use the same version as your wasmvm version.\n4. Check the updated wasmd version: `go list -m github.com/CosmWasm/wasmd` and ensure you see 0.60.1, 0.55.1, 0.54.1 or 0.53.3.\n5. Follow your regular practices to deploy chain upgrades.\n\nThe patch is consensus breaking.\n\n## Acknowledgement\n\nThis problem was discovered during an audit of the CosmWasm stack performed by Sherlock and funded by ICF/ICL in Q1 2025. Thank you for that work!\n\nIf you believe you have found a bug in the Interchain Stack or would like to contribute to the\nprogram by reporting a bug, please see <https://hackerone.com/cosmos>.\n\n## Timeline\n\n- 2025-03-03: Auditor informs Confio about this issue.\n- 2025-04-10: Confio developed the patch internally.\n- 2025-06-05: Upcoming patch is announced.\n- 2025-06-10: Patch is released.\n\n[^1]: following Amulet's Severity Classification Framework ACMv1.2: <https://github.com/interchainio/security/blob/0295254e8645301ccb606d46108a45cede0a73e0/resources/CLASSIFICATION_MATRIX.md>",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.60.0"
      }, {
        "fixed" : "0.60.1"
      } ]
    } ],
    "versions" : [ "0.60.0" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.55.0"
      }, {
        "fixed" : "0.55.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.54.0"
      }, {
        "fixed" : "0.54.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.51.0"
      }, {
        "fixed" : "0.53.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/security/advisories/GHSA-79xg-q4qm-7v9w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2025-006.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CosmWasm/wasmd"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-11T14:44:38Z",
    "nvd_published_at" : null
  }
}