CVE-2023-34451
CometBFT may duplicate transactions in the mempool's data structures
Also known as GHSA-w24w-wp77-qffm, GO-2023-1883
Mitigation
- Upgrade github.com/cometbft/cometbft to one of 0.34.29, 0.37.2 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/cometbft/cometbft (< 0.34.29)
- Anyone running cometbft < 0.34.29; >= 0.37.0, < 0.37.2
Vulnerability facts
- Affected
- github.com/cometbft/cometbft < 0.34.29
- Fixed in
- 0.34.29, 0.37.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: High
- EPSS
- 1.03% chance of exploitation in 30 days (percentile 63, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
CometBFT is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine and replicates it on many machines. The mempool maintains two data structures to keep track of outstanding transactions: a list and a map. These two data structures are supposed to be in sync all the time in the sense that the map tracks the index (if any) of the transaction in the list. In `v0.37.0`, and `v0.37.1`, as well as in `v0.34.28`, and all previous releases of the CometBFT repo2, it is possible to have them out of sync. When this happens, the list may contain several copies of the same transaction. Because the map tracks a single index, it is then no longer possible to remove all the copies of the transaction from the list. This happens even if the duplicated transaction is later committed in a block. The only way to remove the transaction is by restarting the node. The above problem can be repeated on and on until a sizable number of transactions are stuck in the mempool, in order to try to bring down the target node. The problem is fixed in releases `v0.34.29` and `v0.37.2`. Some workarounds are available. Increasing the value of `cache_size` in `config.toml` makes it very difficult to effectively attack a full node. Not exposing the transaction submission RPC's would mitigate the probability of a successful attack, as the attacker would then have to create a modified (byzantine) full node to be able to perform the attack via p2p.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/cometbft/cometbft | < 0.34.29 | 0.34.29, 0.37.2 | osv |
| cometbft | < 0.34.29; >= 0.37.0, < 0.37.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-34451. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-34451.md Affected: github.com/cometbft/cometbft < 0.34.29 Fixed in: 0.34.29, 0.37.2 Steps: 1. Search this machine and project for github.com/cometbft/cometbft (Go), cometbft: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2023-34451 being exploited?
There is no confirmed exploitation: CVE-2023-34451 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-34451?
High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-34451?
github.com/cometbft/cometbft < 0.34.29.
Is there a fix for CVE-2023-34451?
Yes. Fixed in 0.34.29, 0.37.2. Upgrade github.com/cometbft/cometbft to one of 0.34.29, 0.37.2 (or later in the same release line).
How do I check if I'm affected by CVE-2023-34451?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.