{"answers":{"affected":"5 open source packages ship an affected version, including github.com/cometbft/cometbft.","exploited":"There is no known exploitation of GHSA-hg58-rf2h-6rr7 in the wild and no public exploit code.","fix":"Upgrade github.com/cometbft/cometbft to a fixed version for your release line: 0.37.7 or 0.38.8.","what":"GHSA-hg58-rf2h-6rr7 is a denial of service vulnerability in github.com/cometbft/cometbft, published on 28 Jun 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-hg58-rf2h-6rr7 and fix it if it is affected.\n\nWhat it is: GHSA-hg58-rf2h-6rr7 is a denial of service vulnerability in github.com/cometbft/cometbft, published on 28 Jun 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-hg58-rf2h-6rr7 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cometbft/cometbft (Go): affected from 0.37.0; fixed in 0.37.7, 0.38.8\n- github.com/cometbft/cometbft (Go): affected from 0.37.0; fixed in 0.37.7\n- github.com/cometbft/cometbft (Go): affected from 0.37.0; fixed in 0.37.7\n- github.com/cometbft/cometbft (Go): affected from 0.38.0; fixed in 0.38.8\n- github.com/cometbft/cometbft (Go): affected from 0.38.0; fixed in 0.38.8\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-hg58-rf2h-6rr7/ (Markdown: https://insights.sbomify.com/GHSA-hg58-rf2h-6rr7/index.md)","id":"GHSA-hg58-rf2h-6rr7","markdown":"https://insights.sbomify.com/GHSA-hg58-rf2h-6rr7/index.md","name":"GHSA-hg58-rf2h-6rr7","record":{"aliases":["GO-2024-2951"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"CometBFT consensus engine","requires_auth":"none","summary":"A malicious peer can cause CometBFT nodes to panic or get stuck during blocksync, resulting in a denial of service.","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":"**Name**: ASA-2024-008: Instability during blocksync when syncing from malicious peer\n**Component**: CometBFT\n**Criticality**: Medium ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Moderate; L: Possible)\n**Affected versions**: \u003c v0.38.7 \n\n# Summary\n\nAn issue was identified for nodes syncing on an existing network during blocksync in which a malicious peer could cause the syncing peer to panic, enter into a catastrophic invalid syncing state or get stuck in blocksync mode, never switching to consensus. It is recommended for all clients to adopt this patch so that blocksync functions as expected and is tolerant of malicious peers presenting invalid data in this situation. Nodes that are vulnerable to this state may experience a Denial of Service condition in which syncing will not work as expected when joining a network as a client.\n\n# Recognition\n\nThis issue was reported to the Cosmos Bug Bounty Program on HackerOne on 5/01/24 by unknown_feature. 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).\n\nFor more information about CometBFT, please see https://docs.cometbft.com/.\n\nFor more information about the Interchain Foundation’s engagement with Amulet, 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":"CometBFT is unstability during blocksync when syncing from malicious peer","id":"GHSA-hg58-rf2h-6rr7","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.37.7","0.38.8"],"introduced":["0.37.0","0.38.0"],"last_affected":[],"package":"github.com/cometbft/cometbft","purl":"pkg:golang/github.com/cometbft/cometbft","source":"GO-2024-2951"},{"ecosystem":"Go","fixed":["0.37.7"],"introduced":["0.37.0"],"last_affected":[],"package":"github.com/cometbft/cometbft","purl":null,"source":"GHSA-hg58-rf2h-6rr7"},{"ecosystem":"Go","fixed":["0.37.7"],"introduced":["0.37.0"],"last_affected":[],"package":"github.com/cometbft/cometbft","purl":"pkg:golang/github.com/cometbft/cometbft","source":"GHSA-hg58-rf2h-6rr7"},{"ecosystem":"Go","fixed":["0.38.8"],"introduced":["0.38.0"],"last_affected":[],"package":"github.com/cometbft/cometbft","purl":null,"source":"GHSA-hg58-rf2h-6rr7"},{"ecosystem":"Go","fixed":["0.38.8"],"introduced":["0.38.0"],"last_affected":[],"package":"github.com/cometbft/cometbft","purl":"pkg:golang/github.com/cometbft/cometbft","source":"GHSA-hg58-rf2h-6rr7"}],"products":null,"published":"2024-06-28","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 peer can cause CometBFT nodes to panic or get stuck during blocksync, resulting in a denial of service.","url":"https://insights.sbomify.com/GHSA-hg58-rf2h-6rr7/"}