CVE-2020-5303

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:tendermint:tendermint:*:*:*:*:*:*:*:*
cpe:2.3:a:tendermint:tendermint:*:*:*:*:*:*:*:*
cpe:2.3:a:tendermint:tendermint:*:*:*:*:*:*:*:*

History

21 Nov 2024, 05:33

Type Values Removed Values Added
References () https://github.com/tendermint/tendermint/commit/e2d6859afd7dba4cf97c7f7d412e7d8fc908d1cd - Patch, Third Party Advisory () https://github.com/tendermint/tendermint/commit/e2d6859afd7dba4cf97c7f7d412e7d8fc908d1cd - Patch, Third Party Advisory
References () https://github.com/tendermint/tendermint/security/advisories/GHSA-v24h-pjjv-mcp6 - Third Party Advisory () https://github.com/tendermint/tendermint/security/advisories/GHSA-v24h-pjjv-mcp6 - Third Party Advisory
References () https://hackerone.com/reports/820317 - Permissions Required, Third Party Advisory () https://hackerone.com/reports/820317 - Permissions Required, Third Party Advisory
CVSS v2 : 4.3
v3 : 3.7
v2 : 4.3
v3 : 3.1

Information

Published : 2020-04-10 19:15

Updated : 2024-11-21 05:33


NVD link : CVE-2020-5303

Mitre link : CVE-2020-5303

CVE.ORG link : CVE-2020-5303


JSON object : View

Products Affected

tendermint

  • tendermint
CWE
CWE-789

Memory Allocation with Excessive Size Value

CWE-787

Out-of-bounds Write