GHSA-g8w7-7vgg-x7xg: CWA-2024-005 Stackoverflow Vulnerability
HIGHGHSA-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
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).
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.
Upgrade github.com/CosmWasm/wasmd to 0.53.0
Upgrade github.com/CosmWasm/wasmd to 0.46.0
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
GHSA-g8w7-7vgg-x7xg Affected CWA-2024-005 Versions
2 component(s)| 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?
Which CWA-2024-005 versions are affected?
What version fixes GHSA-g8w7-7vgg-x7xg?
Is github.com/CosmWasm/wasmd affected?
What is the CVSS score of GHSA-g8w7-7vgg-x7xg?
What CWE is associated with GHSA-g8w7-7vgg-x7xg?
How can I check Go dependencies for GHSA-g8w7-7vgg-x7xg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}