CVE-2025-24371
Malicious peer can make node stuck in blocksync in github.com/cometbft/cometbft
Also known as GHSA-22qq-3xwm-r5x4, GO-2025-3442
Mitigation
- Upgrade github.com/cometbft/cometbft to one of 1.0.1, 0.38.17 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/cometbft/cometbft (>= 1.0.0-alpha.1, < 1.0.1)
- Anyone running cometbft < 0.38.17; = 1.0.0
Vulnerability facts
- Affected
- github.com/cometbft/cometbft >= 1.0.0-alpha.1, < 1.0.1
- Fixed in
- 1.0.1, 0.38.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-703
- Modified
Description
CometBFT is a distributed, Byzantine fault-tolerant, deterministic state machine replication engine. In the `blocksync` protocol peers send their `base` and `latest` heights when they connect to a new node (`A`), which is syncing to the tip of a network. `base` acts as a lower ground and informs `A` that the peer only has blocks starting from height `base`. `latest` height informs `A` about the latest block in a network. Normally, nodes would only report increasing heights. If `B` fails to provide the latest block, `B` is removed and the `latest` height (target height) is recalculated based on other nodes `latest` heights. The existing code however doesn't check for the case where `B` first reports `latest` height `X` and immediately after height `Y`, where `X > Y`. `A` will be trying to catch up to 2000 indefinitely. This condition requires the introduction of malicious code in the full node first reporting some non-existing `latest` height, then reporting lower `latest` height and nodes which are syncing using `blocksync` protocol. This issue has been patched in versions 1.0.1 and 0.38.17 and all users are advised to upgrade. Operators may attempt to ban malicious peers from the network as a workaround.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/cometbft/cometbft | >= 1.0.0-alpha.1, < 1.0.1 | 1.0.1, 0.38.17 | osv |
| cometbft | < 0.38.17; = 1.0.0 | — | 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-2025-24371. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-24371.md Affected: github.com/cometbft/cometbft >= 1.0.0-alpha.1, < 1.0.1 Fixed in: 1.0.1, 0.38.17 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-2025-24371 being exploited?
There is no confirmed exploitation: CVE-2025-24371 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-24371?
High: CVSS 7.1 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2025-24371?
github.com/cometbft/cometbft >= 1.0.0-alpha.1, < 1.0.1.
Is there a fix for CVE-2025-24371?
Yes. Fixed in 1.0.1, 0.38.17. Upgrade github.com/cometbft/cometbft to one of 1.0.1, 0.38.17 (or later in the same release line).
How do I check if I'm affected by CVE-2025-24371?
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.