GHSA-w6rp-vxj2-fjhr: Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 Cosmos Packet-forward-middleware Vulnerable To Chain-halt Vulnerability

HIGH
Published
Advisory Summary

GHSA-w6rp-vxj2-fjhr is a HIGH cosmos packet-forward-middleware vulnerable to chain-halt vulnerability (General Security Weakness) affecting Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 libraries in the Go ecosystem. The issue involves cosmos packet-forward-middleware vulnerable to chain-halt. Remediation is available by upgrading affected packages to version 4.1.1, 5.2.1, 6.1.1.

GHSA-w6rp-vxj2-fjhr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-w6rp-vxj2-fjhr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-w6rp-vxj2-fjhr

To remediate this vulnerability, upgrade all affected Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 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/ibc-apps/middleware/packet-forward-middleware/v4 fixed: 4.1.1
Upgrade github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 to 4.1.1
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 fixed: 5.2.1
Upgrade github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 to 5.2.1
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 fixed: 6.1.1
Upgrade github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 to 6.1.1
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/ibc-apps/middleware/packet-forward-middleware/v4

How to Check if You Are Affected

To determine whether your application is affected by GHSA-w6rp-vxj2-fjhr, inspect your project dependencies for Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4:

inspect dependencies for github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4

Analyze the terminal output to locate any version of Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.1), 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/ibc apps/middleware/packet forward middleware/v4, 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

The Cosmos SDK is used for Inter-Blockchain Communication Protocol (IBC) applications and middleware. The [packet-forward-middleware](https://github.com/cosmos/ibc-apps/tree/main/middleware/packet-forward-middleware) module is an IBC middleware module built for Cosmos blockchains utilizing the IBC protocol allowing routing of incoming IBC packets from a source chain to a destination chain. The `packet-forward-middleware` module is vulnerable to potential chain-halt due to error non-determinism. ### Patches Please patch at your earliest convenience by applying one of the following patch versions, respective to the chain's ibc-go major version: v4.1.1 v5.2.1 v6.1.1

GHSA-w6rp-vxj2-fjhr Affected Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 Versions

3 component(s)
Fixed Versions:
4.1.15.2.16.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4
Go
< 4.1.1
4.1.1
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5
Go
< 5.2.1
5.2.1
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6
Go
< 6.1.1
6.1.1

References

Frequently Asked Questions

What is GHSA-w6rp-vxj2-fjhr?
GHSA-w6rp-vxj2-fjhr is a security vulnerability in Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 involving Cosmos packet-forward-middleware vulnerable to chain-halt under General Security Weakness.
Which Github.com/cosmos/ibc apps/middleware/packet forward middleware/v4 versions are affected?
Affected versions include releases prior to 4.1.1, 5.2.1, 6.1.1 across affected packages: github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4, github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5, github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6.
What version fixes GHSA-w6rp-vxj2-fjhr?
Upgrading to 4.1.1, 5.2.1, 6.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 affected?
Yes, github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 is affected in releases prior to 4.1.1. Upgrade your dependency to 4.1.1 or later.
Is github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 affected?
Yes, github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 is affected in releases prior to 5.2.1. Upgrade your dependency to 5.2.1 or later.
What CWE is associated with GHSA-w6rp-vxj2-fjhr?
GHSA-w6rp-vxj2-fjhr is classified under General Security Weakness.
How can I check Go dependencies for GHSA-w6rp-vxj2-fjhr?
Run the dependency tree command: 'inspect dependencies for github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4'. 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-w6rp-vxj2-fjhr",
  "modified" : "2023-10-26T23:10:19Z",
  "published" : "2023-10-26T23:10:19Z",
  "aliases" : [ ],
  "summary" : "Cosmos packet-forward-middleware vulnerable to chain-halt",
  "details" : "The Cosmos SDK is used for Inter-Blockchain Communication Protocol (IBC) applications and middleware. The [packet-forward-middleware](https://github.com/cosmos/ibc-apps/tree/main/middleware/packet-forward-middleware) module is an IBC middleware module built for Cosmos blockchains utilizing the IBC protocol allowing routing of incoming IBC packets from a source chain to a destination chain. The `packet-forward-middleware` module is vulnerable to potential chain-halt due to error non-determinism.\n\n### Patches\nPlease patch at your earliest convenience by applying one of the following patch versions, respective to the chain's ibc-go major version:\nv4.1.1\nv5.2.1\nv6.1.1",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cosmos/ibc-apps/security/advisories/GHSA-w6rp-vxj2-fjhr"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cosmos/ibc-apps"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-26T23:10:19Z",
    "nvd_published_at" : null
  }
}