# CVE-2025-24371: Malicious peer can make node stuck in blocksync in github.com/cometbft/cometbft

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-703
- **Aliases:** GHSA-22qq-3xwm-r5x4, GO-2025-3442
- **Published:** 2025-02-03T15:55:28.000Z
- **Modified:** 2026-06-17T08:58:55.260Z

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

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

- Go `github.com/cometbft/cometbft`: affected \>= 1.0.0-alpha.1, \< 1.0.1; fixed 1.0.1, 0.38.17 (osv)
- cometbft: \< 0.38.17; = 1.0.0 (cvelist)

## Mitigation

- Upgrade github.com/cometbft/cometbft to one of 1.0.1, 0.38.17 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/cometbft/cometbft/security/advisories/GHSA-22qq-3xwm-r5x4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-24371>
- patch: <https://github.com/cometbft/cometbft/commit/0ee80cd609c7ae9fe856bdd1c6d38553fdae90ce>
- patch: <https://github.com/cometbft/cometbft/commit/2cebfde06ae5073c0b296a9d2ca6ab4b95397ea5>
- other: <https://github.com/cometbft/cometbft/releases/tag/v0.38.17>
- other: <https://github.com/cometbft/cometbft/releases/tag/v1.0.1>
- other: <https://github.com/cometbft/cometbft>
- other: <https://pkg.go.dev/vuln/GO-2025-3442>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-24371>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-22qq-3xwm-r5x4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3442> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-24371> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-24371>
