GHSA-23px-mw2p-46qm: Github.com/cosmos/cosmos sdk Denial of Service Vulnerability

MODERATE
Published
Advisory Summary

GHSA-23px-mw2p-46qm is a MODERATE denial of service vulnerability (General Security Weakness) affecting Github.com/cosmos/cosmos sdk libraries in the Go ecosystem. The issue involves cosmos-sdk cosmovisor component may be vulnerable to denial of service. Remediation is available by upgrading affected packages to version 0.46.

GHSA-23px-mw2p-46qm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-23px-mw2p-46qm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/cosmos/cosmos sdk
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-23px-mw2p-46qm

To remediate this vulnerability, upgrade all affected Github.com/cosmos/cosmos sdk 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/cosmos/cosmos-sdk fixed: 0.46
Upgrade github.com/cosmos/cosmos-sdk to 0.46
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/cosmos/cosmos-sdk

How to Check if You Are Affected

To determine whether your application is affected by GHSA-23px-mw2p-46qm, inspect your project dependencies for Github.com/cosmos/cosmos sdk:

inspect dependencies for github.com/cosmos/cosmos-sdk

Analyze the terminal output to locate any version of Github.com/cosmos/cosmos sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.46), 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 General Security Weakness. In Github.com/cosmos/cosmos sdk, 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**: Cosmovisor **Criticality**: Medium **Affected Versions**: Cosmovisor < v1.0.0 (distributed with Cosmos-SDK < 0.46) **Affected Users**: Validators and Node operators utilizing unsupported versions of Cosmovisor **Impact**: DOS, potential RCE on node depending on configuration An issue has been identified on unsupported versions of Cosmovisor which may result in a Denial of Service or Remote Code Execution path depending on configuration for a node or validator using the vulnerable version to manage their node. If a validator is utilizing an affected version of Cosmovisor with `DAEMON_ALLOW_DOWNLOAD_BINARIES` set to true, a non-default configuration, it may be possible for an attacker to trigger a Remote Code Execution path as well on the host. In this configuration it is recommended to immediately stop use of the `DAEMON_ALLOW_DOWNLOAD_BINARIES` feature, and then proceed with an upgrade of Cosmovisor. It is recommended that all validators utilizing unsupported versions of Cosmovisor to upgrade to the latest supported versions immediately. If you are utilizing a forked version of Cosmos-SDK, it is recommended to stop use of Cosmovisor until it is possible to update to a supported version of Cosmovisor, whether through your project’s fork, or directly compiled from the Cosmos-SDK. At the time of this advisory, the latest version of Cosmovisor is v1.5.0. Additionally, the Amulet team recommends that developers building chains powered by Cosmos-SDK share this advisory with validators and node operators to ensure this information is available to all impacted parties within their ecosystems. For more information about Cosmovisor, see https://docs.cosmos.network/main/tooling/cosmovisor This issue was discovered by [Maxwell Dulin](https://maxwelldulin.com) and Nathan Kirkland, who reported it to the Cosmos Bug Bounty Program. If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see [https://hackerone.com/cosmos](https://hackerone.com/cosmos). ## How to tell if I am affected? Running the following command will output whether your cosmovisor version is vulnerable to this issue or not. Vulnerable to this issue: ``` strings ./cosmovisor | grep -q "NEEDED at" && echo "vulnerable" || echo "NOT vulnerable" vulnerable ``` NOT vulnerable to this issue: ``` strings ./cosmovisor_new | grep -q "NEEDED at" && echo "vulnerable" || echo "NOT vulnerable" NOT vulnerable ``` ***** A Note from Amulet on the Security Advisory Process In the interest of timely resolution of this issue for validators and node operators, the Amulet team has chosen to use existing processes and resources for distributing security advisories within the Cosmos and Interchain Ecosystems. Stay tuned as we implement an improved, more robust security advisory distribution system that will provide equitable access to information about security issues in the Interchain Stack.

GHSA-23px-mw2p-46qm Affected Github.com/cosmos/cosmos sdk Versions

1 component(s)
Fixed Versions:
0.46
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cosmos/cosmos-sdk
Go
< 0.46
0.46

References

Frequently Asked Questions

What is GHSA-23px-mw2p-46qm?
GHSA-23px-mw2p-46qm is a security vulnerability in Github.com/cosmos/cosmos sdk involving Cosmos-SDK Cosmovisor component may be vulnerable to denial of service under General Security Weakness.
Which Github.com/cosmos/cosmos sdk versions are affected?
Affected versions include releases prior to 0.46 across affected packages: github.com/cosmos/cosmos-sdk.
What version fixes GHSA-23px-mw2p-46qm?
Upgrading to 0.46 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cosmos/cosmos-sdk affected?
Yes, github.com/cosmos/cosmos-sdk is affected in releases prior to 0.46. Upgrade your dependency to 0.46 or later.
What CWE is associated with GHSA-23px-mw2p-46qm?
GHSA-23px-mw2p-46qm is classified under General Security Weakness.
How can I check Go dependencies for GHSA-23px-mw2p-46qm?
Run the dependency tree command: 'inspect dependencies for github.com/cosmos/cosmos-sdk'. 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-23px-mw2p-46qm",
  "modified" : "2024-02-28T15:51:50Z",
  "published" : "2023-09-06T20:49:54Z",
  "aliases" : [ ],
  "summary" : "Cosmos-SDK Cosmovisor component may be vulnerable to denial of service",
  "details" : "**Component**: Cosmovisor\n**Criticality**: Medium\n**Affected Versions**: Cosmovisor < v1.0.0 (distributed with Cosmos-SDK < 0.46)\n**Affected Users**: Validators and Node operators utilizing unsupported versions of Cosmovisor\n**Impact**: DOS, potential RCE on node depending on configuration\n\n\nAn issue has been identified on unsupported versions of Cosmovisor which may result in a Denial of Service or Remote Code Execution path depending on configuration for a node or validator using the vulnerable version to manage their node. \n\nIf a validator is utilizing an affected version of Cosmovisor with `DAEMON_ALLOW_DOWNLOAD_BINARIES` set to true, a non-default configuration, it may be possible for an attacker to trigger a Remote Code Execution path as well on the host. In this configuration it is recommended to immediately stop use of the `DAEMON_ALLOW_DOWNLOAD_BINARIES` feature, and then proceed with an upgrade of Cosmovisor.\n\nIt is recommended that all validators utilizing unsupported versions of Cosmovisor to upgrade to the latest supported versions immediately.  If you are utilizing a forked version of Cosmos-SDK, it is recommended to stop use of Cosmovisor until it is possible to update to a supported version of Cosmovisor, whether through your project’s fork, or directly compiled from the Cosmos-SDK. At the time of this advisory, the latest version of Cosmovisor is v1.5.0. \n\nAdditionally, the Amulet team recommends that developers building chains powered by Cosmos-SDK share this advisory with validators and node operators to ensure this information is available to all impacted parties within their ecosystems.\n\nFor more information about Cosmovisor, see https://docs.cosmos.network/main/tooling/cosmovisor\n\nThis issue was discovered by [Maxwell Dulin](https://maxwelldulin.com) and Nathan Kirkland, who reported it to the Cosmos Bug Bounty Program.  If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see [https://hackerone.com/cosmos](https://hackerone.com/cosmos).\n\n## How to tell if I am affected?\n\nRunning the following command will output whether your cosmovisor version is vulnerable to this issue or not.  \n\nVulnerable to this issue: \n\n```\nstrings ./cosmovisor | grep -q \"NEEDED at\" && echo \"vulnerable\" || echo \"NOT vulnerable\"\n\nvulnerable\n```\n\n\nNOT vulnerable to this issue:\n\n```\nstrings ./cosmovisor_new | grep -q \"NEEDED at\" && echo \"vulnerable\" || echo \"NOT vulnerable\"\n\nNOT vulnerable\n```\n\n\n*****\n\nA Note from Amulet on the Security Advisory Process\n\nIn the interest of timely resolution of this issue for validators and node operators, the Amulet team has chosen to use existing processes and resources for distributing security advisories within the Cosmos and Interchain Ecosystems. Stay tuned as we implement an improved, more robust security advisory distribution system that will provide equitable access to information about security issues in the Interchain Stack.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cosmos/cosmos-sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.46"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-23px-mw2p-46qm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cosmos/cosmos-sdk"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/cosmos-sdk/blob/tools/cosmovisor/v1.5.0/tools/cosmovisor/CHANGELOG.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-06T20:49:54Z",
    "nvd_published_at" : null
  }
}