{"answers":{"affected":"9 open source packages ship an affected version, including github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4, github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 and github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6.","exploited":"There is no known exploitation of GHSA-w6rp-vxj2-fjhr in the wild and no public exploit code.","fix":"Upgrade github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 to 4.1.1 or later.","what":"GHSA-w6rp-vxj2-fjhr is a denial of service vulnerability in github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4, published on 26 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-w6rp-vxj2-fjhr and fix it if it is affected.\n\nWhat it is: GHSA-w6rp-vxj2-fjhr is a denial of service vulnerability in github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4, published on 26 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-w6rp-vxj2-fjhr in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 (Go): affected all versions; fixed in 4.1.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 (Go): affected all versions; fixed in 4.1.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 (Go): affected all versions; fixed in 4.1.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 (Go): affected all versions; fixed in 5.2.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 (Go): affected all versions; fixed in 5.2.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5 (Go): affected all versions; fixed in 5.2.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 (Go): affected all versions; fixed in 6.1.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 (Go): affected all versions; fixed in 6.1.1\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 (Go): affected all versions; fixed in 6.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-w6rp-vxj2-fjhr/ (Markdown: https://insights.sbomify.com/GHSA-w6rp-vxj2-fjhr/index.md)","id":"GHSA-w6rp-vxj2-fjhr","markdown":"https://insights.sbomify.com/GHSA-w6rp-vxj2-fjhr/index.md","name":"GHSA-w6rp-vxj2-fjhr","record":{"aliases":["GO-2023-2156"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Cosmos IBC middleware","requires_auth":"none","summary":"An attacker can halt the blockchain network by exploiting non-deterministic errors in the Cosmos packet-forward-middleware module.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Cosmos packet-forward-middleware vulnerable to chain-halt","id":"GHSA-w6rp-vxj2-fjhr","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":9,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4","purl":null,"source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4","source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4","source":"GO-2023-2156"},{"ecosystem":"Go","fixed":["5.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5","purl":null,"source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["5.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5","source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["5.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v5","source":"GO-2023-2156"},{"ecosystem":"Go","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6","purl":null,"source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6","source":"GHSA-w6rp-vxj2-fjhr"},{"ecosystem":"Go","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6","purl":"pkg:golang/github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6","source":"GO-2023-2156"}],"products":null,"published":"2023-10-26","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can halt the blockchain network by exploiting non-deterministic errors in the Cosmos packet-forward-middleware module.","url":"https://insights.sbomify.com/GHSA-w6rp-vxj2-fjhr/"}