CVE-2025-25500: Cosmwasm CosmWasm Allows Bypass Of Capability Vulnerability
MODERATECVE-2025-25500 is a MODERATE (CVSS 6.5) cosmwasm allows bypass of capability vulnerability (CWE-284: Improper Access Control) affecting Cosmwasm libraries in the crates.io ecosystem. The issue involves cosmwasm allows bypass of capability restrictions in blockchains. Remediation is available by upgrading affected packages to version 2.2.0.
CVE-2025-25500 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2025-25500
To remediate this vulnerability, upgrade all affected Cosmwasm 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 cosmwasm to 2.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cosmwasm
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-25500, inspect your project dependencies for Cosmwasm:
inspect dependencies for cosmwasm
Analyze the terminal output to locate any version of Cosmwasm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Cosmwasm, 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
CVE-2025-25500 Affected Cosmwasm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cosmwasm
|
crates.io |
< 2.2.0
|
2.2.0
|
References
Frequently Asked Questions
What is CVE-2025-25500?
Which Cosmwasm versions are affected?
What version fixes CVE-2025-25500?
Is cosmwasm affected?
What is the CVSS score of CVE-2025-25500?
What CWE is associated with CVE-2025-25500?
How can I check crates.io dependencies for CVE-2025-25500?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cg8r-jwg7-r2x4",
"modified" : "2025-03-21T21:11:31Z",
"published" : "2025-03-18T15:30:47Z",
"aliases" : [ "CVE-2025-25500" ],
"summary" : "CosmWasm Allows Bypass of Capability Restrictions in Blockchains",
"details" : "An issue in CosmWasm prior to v2.2.0 allows attackers to bypass capability restrictions in blockchains by exploiting a lack of runtime capability validation. This allows attackers to deploy a contract without capability enforcement, and execute unauthorized actions on the blockchain.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "cosmwasm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-25500"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/H3T76/8096a6ff9410f3a6d9a25db1a68ae657#file-cve-2025-25500"
}, {
"type" : "WEB",
"url" : "https://github.com/CVEProject/cveproject.github.io/blob/gh-pages/requester/reservation-guidelines.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/CosmWasm/cosmwasm"
}, {
"type" : "WEB",
"url" : "https://github.com/CosmWasm/cosmwasm/blob/v2.2.0/CHANGELOG.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-306" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-18T22:17:53Z",
"nvd_published_at" : "2025-03-18T14:15:43Z"
}
}