# CVE-2023-34451: CometBFT may duplicate transactions in the mempool's data structures

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-07-03T16:35:37.097Z
- Modified: 2026-09-10T03:49:57.257Z
- Also known as: GHSA-w24w-wp77-qffm, GO-2023-1883
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cometbft cometbft: < 0.34.29; >= 0.37.0, < 0.37.2; from 0.34.28 before 0.34.29; from 0.37.0 before 0.37.2
- github.com/cometbft/cometbft (Go): before 0.34.29; from 0.37.0 before 0.37.2; before 0.37.2

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/cometbft/cometbft/security/advisories/GHSA-w24w-wp77-qffm> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/cometbft/cometbft/pull/890> (exploit, fix, issue-tracking, patch, web)
- <https://github.com/tendermint/tendermint/pull/2778> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-34451> (advisory)
- <https://github.com/cometbft/cometbft> (package)

## Sources

- CVE List: [CVE-2023-34451](https://www.cve.org/CVERecord?id=CVE-2023-34451), CVE Terms of Use, modified 2024-11-22
- GitHub Advisory Database: [GHSA-w24w-wp77-qffm](https://github.com/advisories/GHSA-w24w-wp77-qffm), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1883](https://pkg.go.dev/vuln/GO-2023-1883), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-34451](https://nvd.nist.gov/vuln/detail/CVE-2023-34451), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-34451 · Whole record: https://cve.day/CVE-2023-34451.json · Rebuilt by cve.day 2026-11-25T22:58:25.358Z
