CVE-2025-25500: Cosmwasm CosmWasm Allows Bypass Of Capability Vulnerability

MODERATE
Advisory Identifier: GHSA-cg8r-jwg7-r2x4
CVSS 6.5
CWE-284 CWE-306
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-25500
GHSA Identifier GHSA-cg8r-jwg7-r2x4
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Cosmwasm
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

cosmwasm fixed: 2.2.0
Upgrade cosmwasm to 2.2.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 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

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.

CVE-2025-25500 Affected Cosmwasm Versions

1 component(s)
Fixed Versions:
2.2.0
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?
CVE-2025-25500 is a security vulnerability in Cosmwasm involving CosmWasm Allows Bypass of Capability Restrictions in Blockchains under CWE-284: Improper Access Control.
Which Cosmwasm versions are affected?
Affected versions include releases prior to 2.2.0 across affected packages: cosmwasm.
What version fixes CVE-2025-25500?
Upgrading to 2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cosmwasm affected?
Yes, cosmwasm is affected in releases prior to 2.2.0. Upgrade your dependency to 2.2.0 or later.
What is the CVSS score of CVE-2025-25500?
CVE-2025-25500 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2025-25500?
CVE-2025-25500 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check crates.io dependencies for CVE-2025-25500?
Run the dependency tree command: 'inspect dependencies for cosmwasm'. 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-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"
  }
}