Vulnerability · Published Apr 10, 2020 · Assigned by GitHub_M
CVE-2020-5303Denial of service in Tendermint
Low 3.1
In plain English
A low-severity security flaw in Tendermint from Tendermint. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/tendermint/tendermint | 0.33.3 | GHSA-v24h-pjjv-mcp6 |
| Go | github.com/tendermint/tendermint | 0.31.12 | GHSA-v24h-pjjv-mcp6 |
| Go | github.com/tendermint/tendermint | 0.32.10 | GHSA-v24h-pjjv-mcp6 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Tendermint | Tendermint | >= 0.32.0, < 0.32.10>= 0.33.0, < 0.33.3< 0.31.12 |
Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/tendermint/tendermint/security/advisories/GHSA-v24h-pjjv-mcp6 x_refsource_CONFIRM
- https://hackerone.com/reports/820317 x_refsource_MISC
- https://github.com/tendermint/tendermint/commit/e2d6859afd7dba4cf97c7f7d412e7d8fc908d1cd x_refsource_MISC