{"answers":{"affected":"5 open source packages ship an affected version, including github.com/cosmos/cosmos-sdk.","exploited":"There is no known exploitation of GHSA-p22h-3m2v-cmgh in the wild and no public exploit code.","fix":"Upgrade github.com/cosmos/cosmos-sdk to a fixed version for your release line: 0.50.14 or 0.53.3.","what":"GHSA-p22h-3m2v-cmgh is a vulnerability in github.com/cosmos/cosmos-sdk, published on 8 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-p22h-3m2v-cmgh and fix it if it is affected.\n\nWhat it is: GHSA-p22h-3m2v-cmgh is a vulnerability in github.com/cosmos/cosmos-sdk, published on 8 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-p22h-3m2v-cmgh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.50.14, 0.53.3\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.50.14\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.50.14\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.52.0-alpha.1; fixed in 0.53.3\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.52.0-alpha.1; fixed in 0.53.3\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-p22h-3m2v-cmgh/ (Markdown: https://insights.sbomify.com/GHSA-p22h-3m2v-cmgh/index.md)","id":"GHSA-p22h-3m2v-cmgh","markdown":"https://insights.sbomify.com/GHSA-p22h-3m2v-cmgh/index.md","name":"GHSA-p22h-3m2v-cmgh","record":{"aliases":["GO-2025-3803"],"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":"low_privilege","summary":"A malicious validator can trigger an integer overflow in the Cosmos SDK distribution module, causing a complete blockchain halt.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Description\nName: ISA-2025-005: Integer Overflow in Cosmos SDK\nComponent: CosmosSDK\nCriticality: High (Considerable Impact; Likely Likelihood per [ACMv1.2](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md))\nAffected versions: \u003c= v0.50.13, \u003c= 0.53.2\nAffected users: Validators, Full nodes, Users on chains that utilize the distribution module\nCosmos SDK chains in unpatched releases that use the x/distribution module are affected.\n\nDescription\nAn issue was discovered in the distribution module where a malicious deposit into the Validator Rewards pool would result in an integer overflow that would cause a chain halt. A malicious validator can interact with the distribution module to introduce this state.\n\nPatches\nHas the problem been patched? What versions should users upgrade to?\n\nThe new Cosmos SDK release [v0.50.14](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.14) and [v0.53.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.53.3) fix this issue.\n\nThere are no known workarounds for this issue. It is advised that chains apply the update.\n\nThis issue was reported to the Cosmos Bug Bounty Program by `myte1111111` on HackerOne on April 15, 2025. 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.\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":"Cosmos SDK's Integer Overflow vulnerability in its Validator Rewards pool can cause a chain halt","id":"GHSA-p22h-3m2v-cmgh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"integer_overflow","year":"2025"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.50.14","0.53.3"],"introduced":["0","0.52.0-alpha.1"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GO-2025-3803"},{"ecosystem":"Go","fixed":["0.50.14"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-p22h-3m2v-cmgh"},{"ecosystem":"Go","fixed":["0.50.14"],"introduced":["0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-p22h-3m2v-cmgh"},{"ecosystem":"Go","fixed":["0.53.3"],"introduced":["0.52.0-alpha.1"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-p22h-3m2v-cmgh"},{"ecosystem":"Go","fixed":["0.53.3"],"introduced":["0.52.0-alpha.1"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-p22h-3m2v-cmgh"}],"products":null,"published":"2025-07-08","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":"A malicious validator can trigger an integer overflow in the Cosmos SDK distribution module, causing a complete blockchain halt.","url":"https://insights.sbomify.com/GHSA-p22h-3m2v-cmgh/"}