—
GO-2023-1883
Denial of service via OOM in github.com/cometbft/cometbft
Quick fix
GO-2023-1883 — github.com/cometbft/cometbft: upgrade to the fixed version with the command below.
go get github.com/cometbft/cometbft@v0.37.2Details
A bug in the CometBFT middleware causes the mempool's two data structures to fall out of sync. This can lead to duplicate transactions that cannot be removed, even after they are committed in a block. The only way to remove the transaction is to restart the node. This can be exploited by an attacker to bring down a node by repeatedly submitting duplicate transactions.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/cometbft/cometbft
Introduced in:
0Fixed in: 0.37.2Fix
go get github.com/cometbft/cometbft@v0.37.2