{"answers":{"affected":"3 open source packages ship an affected version, including github.com/tendermint/tendermint. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21271 in the wild and no public exploit code.","fix":"Upgrade github.com/tendermint/tendermint to 0.34.3 or later.","what":"CVE-2021-21271 is a medium-severity denial of service vulnerability in tendermint, published on 26 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21271 and fix it if it is affected.\n\nWhat it is: CVE-2021-21271 is a medium-severity denial of service vulnerability in tendermint, published on 26 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21271 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/tendermint/tendermint (Go): affected from 0.34.0; fixed in 0.34.3\n- github.com/tendermint/tendermint (Go): affected from 0.34.0; fixed in 0.34.3\n- github.com/tendermint/tendermint (Go): affected from 0.34.0; fixed in 0.34.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/CVE-2021-21271/ (Markdown: https://insights.sbomify.com/CVE-2021-21271/index.md)","id":"CVE-2021-21271","markdown":"https://insights.sbomify.com/CVE-2021-21271/index.md","name":"CVE-2021-21271","record":{"aliases":["GHSA-p658-8693-mhvg","GO-2022-1052"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"BFT consensus middleware","requires_auth":"low_privilege","summary":"Attackers can cause network disconnections and denial of service by exploiting inconsistent evidence timestamps in Tendermint Core consensus.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tendermint","vendor":"tendermint"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Tendermint Core is an open source Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine - written in any programming language - and securely replicates it on many machines. Tendermint Core v0.34.0 introduced a new way of handling evidence of misbehavior. As part of this, we added a new Timestamp field to Evidence structs. This timestamp would be calculated using the same algorithm that is used when a block is created and proposed. (This algorithm relies on the timestamp of the last commit from this specific block.) In Tendermint Core v0.34.0-v0.34.2, the consensus reactor is responsible for forming DuplicateVoteEvidence whenever double signs are observed. However, the current block is still “in flight” when it is being formed by the consensus reactor. It hasn’t been finalized through network consensus yet. This means that different nodes in the network may observe different “last commits” when assigning a timestamp to DuplicateVoteEvidence. In turn, different nodes could form DuplicateVoteEvidence objects at the same height but with different timestamps. One DuplicateVoteEvidence object (with one timestamp) will then eventually get finalized in the block, but this means that any DuplicateVoteEvidence with a different timestamp is considered invalid. Any node that formed invalid DuplicateVoteEvidence will continue to propose invalid evidence; its peers may see this, and choose to disconnect from this node. This bug means that double signs are DoS vectors in Tendermint Core v0.34.0-v0.34.2. Tendermint Core v0.34.3 is a security release which fixes this bug. As of v0.34.3, DuplicateVoteEvidence is no longer formed by the consensus reactor; rather, the consensus reactor passes the Votes themselves into the EvidencePool, which is now responsible for forming DuplicateVoteEvidence. The EvidencePool has timestamp info that should be consistent across the network, which means that DuplicateVoteEvidence formed in this reactor should have consistent timestamps. This release changes the API between the consensus and evidence reactors.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of service in TenderMint Core","id":"CVE-2021-21271","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":3,"n_references":3,"next":{"headline":"zip slip in ORAS","id":"CVE-2021-21272"},"packages":[{"ecosystem":"Go","fixed":["0.34.3"],"introduced":["0.34.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":null,"source":"GHSA-p658-8693-mhvg"},{"ecosystem":"Go","fixed":["0.34.3"],"introduced":["0.34.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":"pkg:golang/github.com/tendermint/tendermint","source":"GHSA-p658-8693-mhvg"},{"ecosystem":"Go","fixed":["0.34.3"],"introduced":["0.34.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":"pkg:golang/github.com/tendermint/tendermint","source":"GO-2022-1052"}],"prev":{"headline":"Cleartext Storage of Sensitive Information","id":"CVE-2021-21270"},"products":["tendermint"],"published":"2021-01-26","related":[{"cvss_score":7.5,"headline":"Uncontrolled resource consumption in github.com/tendermint/tendermint","id":"CVE-2019-25072","kev_date_added":null,"published":"2022-12-27"},{"cvss_score":6.5,"headline":"Denial of Service in TenderMint","id":"CVE-2020-15091","kev_date_added":null,"published":"2020-07-02"},{"cvss_score":3.1,"headline":"Denial of service in Tendermint","id":"CVE-2020-5303","kev_date_added":null,"published":"2020-04-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["tendermint"]},"summary":"Attackers can cause network disconnections and denial of service by exploiting inconsistent evidence timestamps in Tendermint Core consensus.","url":"https://insights.sbomify.com/CVE-2021-21271/"}