GHSA-fpgj-cr28-fvpx: CWA-2024-006 Wasmd Non-deterministic Module_query_safe Query Vulnerability
MODERATEGHSA-fpgj-cr28-fvpx is a MODERATE wasmd non-deterministic module_query_safe query vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting CWA-2024-006 libraries in the Go ecosystem. The issue involves wasmd non-deterministic module_query_safe query. Remediation is available by upgrading affected packages to version 0.53.0.
GHSA-fpgj-cr28-fvpx at a Glance
How to Fix GHSA-fpgj-cr28-fvpx
To remediate this vulnerability, upgrade all affected CWA-2024-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.
Upgrade github.com/CosmWasm/wasmd to 0.53.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-fpgj-cr28-fvpx, inspect your project dependencies for CWA-2024-006:
inspect dependencies for github.com/CosmWasm/wasmd
Analyze the terminal output to locate any version of CWA-2024-006 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In CWA-2024-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
GHSA-fpgj-cr28-fvpx Affected CWA-2024-006 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/CosmWasm/wasmd
|
Go |
≥ 0.52.0
< 0.53.0
All 1 versions
0.52.0
|
0.53.0
|
References
Frequently Asked Questions
What is GHSA-fpgj-cr28-fvpx?
Which CWA-2024-006 versions are affected?
What version fixes GHSA-fpgj-cr28-fvpx?
Is github.com/CosmWasm/wasmd affected?
What CWE is associated with GHSA-fpgj-cr28-fvpx?
How can I check Go dependencies for GHSA-fpgj-cr28-fvpx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fpgj-cr28-fvpx",
"modified" : "2024-08-21T18:33:17Z",
"published" : "2024-08-21T18:33:17Z",
"aliases" : [ ],
"summary" : "CWA-2024-006: wasmd non-deterministic module_query_safe query",
"details" : "**Component:** wasmd\n**Criticality:** Medium ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Moderate; L:Likely)\n**Patched versions:** wasmd 0.53.0\n\nSee [CWA-2024-006](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-006.md) for more details.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/CosmWasm/wasmd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.52.0"
}, {
"fixed" : "0.53.0"
} ]
} ],
"versions" : [ "0.52.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/CosmWasm/wasmd/security/advisories/GHSA-fpgj-cr28-fvpx"
}, {
"type" : "WEB",
"url" : "https://github.com/CosmWasm/wasmd/commit/db8981db8419fc4daa042ce04e279efb53c4ff29"
}, {
"type" : "WEB",
"url" : "https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-006.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/CosmWasm/wasmd"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-21T18:33:17Z",
"nvd_published_at" : null
}
}