Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/tendermint/tendermint/p2p
  4. ›
  5. CVE-2020-5303

CVE-2020-5303: Out-of-bounds Write

May 27, 2021

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.

References

  • github.com/advisories/GHSA-v24h-pjjv-mcp6
  • github.com/tendermint/tendermint/blob/master/CHANGELOG.md
  • github.com/tendermint/tendermint/commit/e2d6859afd7dba4cf97c7f7d412e7d8fc908d1cd
  • github.com/tendermint/tendermint/issues/1696
  • github.com/tendermint/tendermint/issues/3338
  • github.com/tendermint/tendermint/security/advisories/GHSA-v24h-pjjv-mcp6
  • nvd.nist.gov/vuln/detail/CVE-2020-5303

Code Behaviors & Features

Detect and mitigate CVE-2020-5303 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.33.0 before 0.33.3, all versions before 0.31.12, all versions starting from 0.32.0 before 0.32.10

Fixed versions

  • 0.31.12

Solution

Upgrade to version 0.31.12 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

go/github.com/tendermint/tendermint/p2p/CVE-2020-5303.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.