{"answers":{"affected":"8 open source packages ship an affected version, including cosmossdk.io/x/tx and github.com/cosmos/cosmos-sdk.","exploited":"There is no known exploitation of GHSA-8wcc-m6j2-qxvm in the wild and no public exploit code.","fix":"Upgrade cosmossdk.io/x/tx to 0.13.7 or later.","what":"GHSA-8wcc-m6j2-qxvm is a denial of service vulnerability in cosmossdk.io/x/tx, published on 16 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-8wcc-m6j2-qxvm and fix it if it is affected.\n\nWhat it is: GHSA-8wcc-m6j2-qxvm is a denial of service vulnerability in cosmossdk.io/x/tx, published on 16 Dec 2024. 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-8wcc-m6j2-qxvm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cosmossdk.io/x/tx (Go): affected all versions; fixed in 0.13.7\n- cosmossdk.io/x/tx (Go): affected all versions; fixed in 0.13.7\n- cosmossdk.io/x/tx (Go): affected all versions; fixed in 0.13.7\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.47.15, 0.50.11\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.47.15\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.47.15\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.50.0-alpha.0; fixed in 0.50.11\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.50.0-alpha.0; fixed in 0.50.11\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-8wcc-m6j2-qxvm/ (Markdown: https://insights.sbomify.com/GHSA-8wcc-m6j2-qxvm/index.md)","id":"GHSA-8wcc-m6j2-qxvm","markdown":"https://insights.sbomify.com/GHSA-8wcc-m6j2-qxvm/index.md","name":"GHSA-8wcc-m6j2-qxvm","record":{"aliases":["GO-2024-3339"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Cosmos SDK library","requires_auth":"none","summary":"Attackers can cause network halts or node crashes via maliciously formed transactions with deep nesting or exponential resource consumption.","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":"## Summary \n\n### ASA-2024-0012\nName: ASA-2024-0012,  Transaction decoding may result in a stack overflow\nComponent: Cosmos SDK\nCriticality: High (Considerable Impact, and Possible Likelihood per [ACMv1.2](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md))\nAffected versions: cosmos-sdk versions \u003c= v0.50.10, \u003c= v0.47.14\nAffected users: Chain Builders + Maintainers, Validators, node operators\n\n### ASA-2024-0013\nName: ASA-2024-0013: CosmosSDK: Transaction decoding may result in resource exhaustion  \nComponent: Cosmos SDK\nCriticality: High (Considerable Impact, and Possible Likelihood per [ACMv1.2](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md))\nAffected versions: cosmos-sdk versions \u003c= v0.50.10, \u003c= v0.47.14\nAffected users: Chain Builders + Maintainers, Validators, node operators\n\n### Impact\n\n### ASA-2024-0012\n\nWhen decoding a maliciously formed packet with a deeply-nested structure, it may be possible for a stack overflow to occur and result in a network halt. This was addressed by adding a recursion limit while decoding the packet.\n\n### ASA-2024-0013\n\nNested messages in a transaction can consume exponential cpu and memory on `UnpackAny` calls.  The`max_tx_bytes` sets a limit for external TX but is not applied for internal messages emitted by wasm contracts or a malicious validator block. This may result in a node crashing due to resource exhaustion.  This was addressed by adding additional validation to prevent this condition.\n\n### Patches\n\nThe issues above are resolved in Cosmos SDK versions v0.47.15 or v0.50.11.\nPlease upgrade ASAP.\n\n### Timeline for ASA-2024-0012\n\n* October 1, 2024, 12:29pm UTC: Issue reported to the Cosmos Bug Bounty program\n* October 1, 2024, 2:47pm UTC: Issue triaged by Amulet on-call, and distributed to Core team\n* December 9, 2024, 11:13am UTC: Core team completes patch for issue\n* Dec 14, 2024,16:00 UTC: Pre-notification delivered\n* Dec 16, 2024, 16:00 UTC: Patch made available\n\nThis issue was reported to the Cosmos Bug Bounty Program on HackerOne on October 1, 2024.\n\n### Timeline for ASA-2024-0013\n\n* October 19, 2024, 8:12pm UTC: Issue reported to the Cosmos Bug Bounty program\n* October 19, 2024, 8:28pm UTC: Issue triaged by Amulet on-call, and distributed to Core team\n* December 11, 2024, 3:31pm UTC: Core team completes patch for issue\n* Dec 14, 2024, 16:00 UTC: Pre-notification delivered\n* Dec 16, 2024, 16:00 UTC: Patch made available\n\nThis issue was reported by LonelySloth to the Cosmos Bug Bounty Program on HackerOne on October 19, 2024. \n\nIf 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.\n\nIf you have questions about Interchain security efforts, please reach out to our official communication channel at [security@interchain.io](mailto:security@interchain.io).  For more information about the Interchain Foundation’s engagement with Amulet, and to sign up for security notification emails, please see https://github.com/interchainio/security.","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":"ASA-2024-0012, ASA-2024-0013: CosmosSDK: Transaction decoding may result in a stack overflow or resource exhaustion","id":"GHSA-8wcc-m6j2-qxvm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":8,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.13.7"],"introduced":["0"],"last_affected":[],"package":"cosmossdk.io/x/tx","purl":null,"source":"GHSA-8wcc-m6j2-qxvm"},{"ecosystem":"Go","fixed":["0.13.7"],"introduced":["0"],"last_affected":[],"package":"cosmossdk.io/x/tx","purl":"pkg:golang/cosmossdk.io/x/tx","source":"GHSA-8wcc-m6j2-qxvm"},{"ecosystem":"Go","fixed":["0.13.7"],"introduced":["0"],"last_affected":[],"package":"cosmossdk.io/x/tx","purl":"pkg:golang/cosmossdk.io/x/tx","source":"GO-2024-3339"},{"ecosystem":"Go","fixed":["0.47.15","0.50.11"],"introduced":["0","0.50.0-alpha.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GO-2024-3339"},{"ecosystem":"Go","fixed":["0.47.15"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-8wcc-m6j2-qxvm"},{"ecosystem":"Go","fixed":["0.47.15"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-8wcc-m6j2-qxvm"},{"ecosystem":"Go","fixed":["0.50.11"],"introduced":["0.50.0-alpha.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-8wcc-m6j2-qxvm"},{"ecosystem":"Go","fixed":["0.50.11"],"introduced":["0.50.0-alpha.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-8wcc-m6j2-qxvm"}],"products":null,"published":"2024-12-16","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":"Attackers can cause network halts or node crashes via maliciously formed transactions with deep nesting or exponential resource consumption.","url":"https://insights.sbomify.com/GHSA-8wcc-m6j2-qxvm/"}