Home / cometbft / cometbft / CVE-2025-24371
CVE-2025-24371: is it exploited, and which versions of cometbft are affected and fixed?
CVE-2025-24371 is an improper Check or Handling of Exceptional Conditions vulnerability in cometbft. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: github.com/cometbft/cometbft from 1.0.0-alpha.1 before 1.0.1 and github.com/cometbft/cometbft before 0.38.17 (GitHub advisory GHSA-22qq-3xwm-r5x4). Fixed in 1.0.1 and 0.38.17 (GitHub advisory GHSA-22qq-3xwm-r5x4). Severity: High (7.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-24371?
Malicious peer can make node stuck in blocksync in github.com/cometbft/cometbft
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.
From the CVE record by GitHub_M, last updated February 4, 2025, 19:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| cometbft | cometbft | < 0.38.17 = 1.0.0 |
As the CVE record by GitHub_M states it, last updated February 4, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/cometbft/cometbft | >= 1.0.0-alpha.1, < 1.0.1 | 1.0.1 | GHSA-22qq-3xwm-r5x4 |
| Go | github.com/cometbft/cometbft | < 0.38.17 | 0.38.17 | GHSA-22qq-3xwm-r5x4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 9, 2026. Summary: CometBFT allows a malicious peer to make node stuck in blocksync.
How severe is CVE-2025-24371?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24371 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, February 4, 2025)
- EPSS
- 0.48% probability of exploitation activity in the next 30 days, percentile 43.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-703 Improper Check or Handling of Exceptional Conditions
Where are the vendor advisories and references?
- https://github.com/cometbft/cometbft/security/advisories/GHSA-22qq-3xwm-r5x4 x_refsource_CONFIRM
- https://github.com/cometbft/cometbft/releases/tag/v0.38.17 x_refsource_MISC
- https://github.com/cometbft/cometbft/releases/tag/v1.0.1 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 20, 2025
- Published
- February 3, 2025, 21:20 UTC
- CVE record updated
- February 4, 2025, 19:16 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 08:58 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect cometbft?
- Jul 3, 2023CVE-2023-34450 cometbft: memory leak
- Jul 3, 2023CVE-2023-34451 cometbft: memory leak
Questions about CVE-2025-24371
Is CVE-2025-24371 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.48% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of cometbft are affected by CVE-2025-24371?
github.com/cometbft/cometbft from 1.0.0-alpha.1 before 1.0.1 and github.com/cometbft/cometbft before 0.38.17, per the GitHub advisory GHSA-22qq-3xwm-r5x4. The tables above give every range the sources list.
Which version fixes CVE-2025-24371?
1.0.1 and 0.38.17, per the GitHub advisory GHSA-22qq-3xwm-r5x4. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-24371?
High (7.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24371?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.