Skip to content

Connecting to bad peers can degrade node performance

Moderate
thanethomson published GHSA-cpqw-5g6w-h8rr Feb 3, 2023

Package

gomod informalsystems/tendermint (Go)

Affected versions

< v0.34.25

Patched versions

v0.34.25

Description

Impact

Connecting to a bad peer that claims to be catching up (the peer is in consensus, but has fallen behind and is attempting to catch up) can, under certain circumstances, degrade the performance of the node that is gossiping the catch-up data.

When the source node of catch-up data fails to gossip this information, it immediately retries, resulting in a "hot loop" of send attempts, spiking CPU usage and degrading node performance.

While this behavior has been seen on some production networks, it is unclear whether this is the result of malicious intent or simply misconfiguration of the "bad" peers (more likely the latter). We have also not yet been able to reliably reproduce the attacker's behavior, so the attack vector is currently technically theoretical.

Patches

It is unclear as to the degree to which the upstream Tendermint Core repository is maintained (see this notice in the README file and this issue), so we recommend upgrading to Informal Systems' public fork of Tendermint Core, v0.34.25, ASAP to help mitigate against this kind of attack.

Workarounds

Operators can attempt to find the node IDs of the bad peers and then block access to their IP addresses as a short-term workaround.

References

#4

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

CVE ID

No known CVE

Weaknesses

No CWEs

Credits