GHSA-g8w7-7vgg-x7xg: CWA-2024-005 Stackoverflow Vulnerability

HIGH
CVSS 7.5
CWE-121
Published
Advisory Summary

GHSA-g8w7-7vgg-x7xg is a HIGH (CVSS 7.5) stackoverflow vulnerability (CWE-121: Stack-based Buffer Overflow) affecting CWA-2024-005 libraries in the Go ecosystem. The issue involves stackoverflow in wasmd. Remediation is available by upgrading affected packages to version 0.53.0, 0.46.0.

GHSA-g8w7-7vgg-x7xg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g8w7-7vgg-x7xg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product CWA-2024-005
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix GHSA-g8w7-7vgg-x7xg

To remediate this vulnerability, upgrade all affected CWA-2024-005 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.53.0
Upgrade github.com/CosmWasm/wasmd to 0.53.0
github.com/CosmWasm/wasmd fixed: 0.46.0
Upgrade github.com/CosmWasm/wasmd to 0.46.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-g8w7-7vgg-x7xg, inspect your project dependencies for CWA-2024-005:

inspect dependencies for github.com/CosmWasm/wasmd

Analyze the terminal output to locate any version of CWA-2024-005 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.53.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-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In CWA-2024-005, 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:** High ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Critical; L:Likely) **Patched versions:** wasmd 0.53.0, 0.46.0 See [CWA-2024-005](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-005.md) for more details.

GHSA-g8w7-7vgg-x7xg Affected CWA-2024-005 Versions

2 component(s)
Fixed Versions:
0.53.00.46.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/CosmWasm/wasmd
Go
≥ 0.50.0
< 0.53.0
0.53.0
github.com/CosmWasm/wasmd
Go
< 0.46.0
0.46.0

References

Frequently Asked Questions

What is GHSA-g8w7-7vgg-x7xg?
GHSA-g8w7-7vgg-x7xg is a security vulnerability in CWA-2024-005 involving Stackoverflow in wasmd under CWE-121: Stack-based Buffer Overflow.
Which CWA-2024-005 versions are affected?
Affected versions include releases prior to 0.53.0, 0.46.0 across affected packages: github.com/CosmWasm/wasmd.
What version fixes GHSA-g8w7-7vgg-x7xg?
Upgrading to 0.53.0, 0.46.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.53.0, 0.46.0. Upgrade your dependency to 0.53.0, 0.46.0 or later.
What is the CVSS score of GHSA-g8w7-7vgg-x7xg?
GHSA-g8w7-7vgg-x7xg has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-g8w7-7vgg-x7xg?
GHSA-g8w7-7vgg-x7xg is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check Go dependencies for GHSA-g8w7-7vgg-x7xg?
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-g8w7-7vgg-x7xg",
  "modified" : "2024-08-21T18:33:13Z",
  "published" : "2024-08-21T18:33:13Z",
  "aliases" : [ ],
  "summary" : "CWA-2024-005: Stackoverflow in wasmd",
  "details" : "**Component:** wasmd\n**Criticality:** High ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Critical; L:Likely)\n**Patched versions:** wasmd 0.53.0, 0.46.0\n\nSee [CWA-2024-005](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-005.md) for more details.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.50.0"
      }, {
        "fixed" : "0.53.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/CosmWasm/wasmd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.46.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/security/advisories/GHSA-g8w7-7vgg-x7xg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/commit/71cf6a8145426b82ed6249ecc86ddd281af9f97b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/wasmd/commit/db8981db8419fc4daa042ce04e279efb53c4ff29"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-005.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CosmWasm/wasmd"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-121" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-21T18:33:13Z",
    "nvd_published_at" : null
  }
}