{"answers":{"affected":"6 open source packages ship an affected version, including github.com/tendermint/tendermint. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5303 in the wild and no public exploit code.","fix":"Upgrade github.com/tendermint/tendermint to a fixed version for your release line: 0.31.12, 0.32.10 or 0.33.3.","what":"CVE-2020-5303 is a low-severity denial of service vulnerability in Tendermint, published on 10 Apr 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5303 and fix it if it is affected.\n\nWhat it is: CVE-2020-5303 is a low-severity denial of service vulnerability in Tendermint, published on 10 Apr 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5303 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/tendermint/tendermint (Go): affected all versions; fixed in 0.31.12\n- github.com/tendermint/tendermint (Go): affected all versions; fixed in 0.31.12\n- github.com/tendermint/tendermint (Go): affected from 0.32.0; fixed in 0.32.10\n- github.com/tendermint/tendermint (Go): affected from 0.32.0; fixed in 0.32.10\n- github.com/tendermint/tendermint (Go): affected from 0.33.0; fixed in 0.33.3\n- github.com/tendermint/tendermint (Go): affected from 0.33.0; fixed in 0.33.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-2020-5303/ (Markdown: https://insights.sbomify.com/CVE-2020-5303/index.md)","id":"CVE-2020-5303","markdown":"https://insights.sbomify.com/CVE-2020-5303/index.md","name":"CVE-2020-5303","record":{"aliases":["GHSA-v24h-pjjv-mcp6"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Tendermint consensus engine","requires_auth":"none","summary":"An attacker can cause a denial of service in Tendermint by exhausting memory through uncontrolled P2P connection requests and activeID leaks.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tendermint","vendor":"tendermint"}],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"description":"Tendermint before versions 0.33.3, 0.32.10, and 0.31.12 has a denial-of-service vulnerability. Tendermint does not limit the number of P2P connection requests. For each p2p connection, it allocates XXX bytes. Even though this memory is garbage collected once the connection is terminated (due to duplicate IP or reaching a maximum number of inbound peers), temporary memory spikes can lead to OOM (Out-Of-Memory) exceptions. Additionally, Tendermint does not reclaim activeID of a peer after it's removed in Mempool reactor. This does not happen all the time. It only happens when a connection fails (for any reason) before the Peer is created and added to all reactors. RemovePeer is therefore called before AddPeer, which leads to always growing memory (activeIDs map). The activeIDs map has a maximum size of 65535 and the node will panic if this map reaches the maximum. An attacker can create a lot of connection attempts (exploiting above denial of service), which ultimately will lead to the node panicking. These issues are patched in Tendermint 0.33.3 and 0.32.10.","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","id":"CVE-2020-5303","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2020"},"n_packages":6,"n_references":3,"next":{"headline":"Other in n/a","id":"CVE-2020-5304"},"packages":[{"ecosystem":"Go","fixed":["0.31.12"],"introduced":["0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":null,"source":"GHSA-v24h-pjjv-mcp6"},{"ecosystem":"Go","fixed":["0.31.12"],"introduced":["0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":"pkg:golang/github.com/tendermint/tendermint","source":"GHSA-v24h-pjjv-mcp6"},{"ecosystem":"Go","fixed":["0.32.10"],"introduced":["0.32.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":null,"source":"GHSA-v24h-pjjv-mcp6"},{"ecosystem":"Go","fixed":["0.32.10"],"introduced":["0.32.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":"pkg:golang/github.com/tendermint/tendermint","source":"GHSA-v24h-pjjv-mcp6"},{"ecosystem":"Go","fixed":["0.33.3"],"introduced":["0.33.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":null,"source":"GHSA-v24h-pjjv-mcp6"},{"ecosystem":"Go","fixed":["0.33.3"],"introduced":["0.33.0"],"last_affected":[],"package":"github.com/tendermint/tendermint","purl":"pkg:golang/github.com/tendermint/tendermint","source":"GHSA-v24h-pjjv-mcp6"}],"prev":{"headline":"unprivileged user can access priviledged action in MH-WikiBot","id":"CVE-2020-5302"},"products":["Tendermint"],"published":"2020-04-10","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 Core","id":"CVE-2021-21271","kev_date_added":null,"published":"2021-01-26"},{"cvss_score":6.5,"headline":"Denial of Service in TenderMint","id":"CVE-2020-15091","kev_date_added":null,"published":"2020-07-02"}],"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":"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-04","vendors":["Tendermint"]},"summary":"An attacker can cause a denial of service in Tendermint by exhausting memory through uncontrolled P2P connection requests and activeID leaks.","url":"https://insights.sbomify.com/CVE-2020-5303/"}