Vulnerabilities in pkg:golang/github.com/CosmWasm/wasmd

PACKAGE
Advisory Summary

GHSA-m3rh-cvr5-x6q4 is a MODERATE (CVSS 3.7) cosmwasm wasmd has large address vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/CosmWasm/wasmd libraries in the Go ecosystem. The issue involves cosmwasm wasmd has large address count in validatebasic. Remediation is available by upgrading affected packages to version 0.52.0.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/CosmWasm/wasmd

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/CosmWasm/wasmd. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m3rh-cvr5-x6q4 - MODERATE CosmWasm wasmd has large address count in ValidateBasic
GHSA-79xg-q4qm-7v9w - HIGH CWA-2025-006: wasmd's improper error handling may lead to IBC channel opening despite error
GHSA-vmg2-r3xv-r3xf - LOW Simulation of Wasmd message can cause crashing
GHSA-fpgj-cr28-fvpx - MODERATE CWA-2024-006: wasmd non-deterministic module_query_safe query
GHSA-g8w7-7vgg-x7xg - HIGH CWA-2024-005: Stackoverflow in wasmd

GHSA-m3rh-cvr5-x6q4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m3rh-cvr5-x6q4
Severity MODERATE
CVSS v3.1 Base Score 3.7
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/CosmWasm/wasmd
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix GHSA-m3rh-cvr5-x6q4

To remediate this vulnerability, upgrade all affected Github.com/CosmWasm/wasmd 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.52.0
Upgrade github.com/CosmWasm/wasmd to 0.52.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/CosmWasm/wasmd

How to Check if You Are Affected

To determine whether your application is affected by GHSA-m3rh-cvr5-x6q4, inspect your project dependencies for Github.com/CosmWasm/wasmd:

inspect dependencies for github.com/CosmWasm/wasmd

Analyze the terminal output to locate any version of Github.com/CosmWasm/wasmd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.52.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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/CosmWasm/wasmd, 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

**Component:** wasmd **Criticality:** Low ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Moderate; L:Unlikely) **Patched versions:** wasmd 0.52.0 In multiple wasmd message types it was possible to add a large number of addresses which might lead to unexpected resource consumption in ValidateBasic. See [CWA-2024-003](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-003.md) for more details.

GHSA-m3rh-cvr5-x6q4 Affected Github.com/CosmWasm/wasmd Versions

1 component(s)
Fixed Versions:
0.52.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/CosmWasm/wasmd
Go
< 0.52.0
0.52.0

References

Frequently Asked Questions

What is GHSA-m3rh-cvr5-x6q4?
GHSA-m3rh-cvr5-x6q4 is a security vulnerability in Github.com/CosmWasm/wasmd involving CosmWasm wasmd has large address count in ValidateBasic under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/CosmWasm/wasmd versions are affected?
Affected versions include releases prior to 0.52.0 across affected packages: github.com/CosmWasm/wasmd.
What version fixes GHSA-m3rh-cvr5-x6q4?
Upgrading to 0.52.0 (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.52.0. Upgrade your dependency to 0.52.0 or later.
What is the CVSS score of GHSA-m3rh-cvr5-x6q4?
GHSA-m3rh-cvr5-x6q4 has a CVSS v3.1 base score of 3.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with GHSA-m3rh-cvr5-x6q4?
GHSA-m3rh-cvr5-x6q4 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for GHSA-m3rh-cvr5-x6q4?
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-m3rh-cvr5-x6q4",
  "modified" : "2026-07-06T16:26:14Z",
  "published" : "2024-08-08T16:36:26Z",
  "aliases" : [ ],
  "summary" : "CosmWasm wasmd has large address count in ValidateBasic",
  "details" : "**Component:** wasmd\n**Criticality:** Low ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Moderate; L:Unlikely)\n**Patched versions:** wasmd 0.52.0\n\nIn multiple wasmd message types it was possible to add a large number of addresses which might lead to unexpected resource consumption in ValidateBasic.\n\nSee [CWA-2024-003](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-003.md) for more details.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.52.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/security/advisories/GHSA-m3rh-cvr5-x6q4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/commit/76c0c061c9cb6b142163883e46c26d99384dc443"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-003.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CosmWasm/wasmd"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-08T16:36:26Z",
    "nvd_published_at" : null
  }
}