cve.bz

CVE-2025-24371 cometbft cometbft

7.1 highEPSS 0.5%Fix available

High (7.1) in cometbft cometbft. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/cometbft/cometbft 0.38.17, 1.0.1.

On this page
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.

Severity

CVSS 4.0

7.1 high
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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-703 Improper Check or Handling of Exceptional Conditions
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-24371 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24371?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24371?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24371 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cometbft< 0.38.17
cometbft= 1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-22qq-3xwm-r5x4Gogithub.com/cometbft/cometbft>=1.0.0-alpha.1 <1.0.11.0.1
GHSA-22qq-3xwm-r5x4Gogithub.com/cometbft/cometbft<0.38.170.38.17
GO-2025-3442Gogithub.com/cometbft/cometbft<0.38.170.38.17
GO-2025-3442Gogithub.com/cometbft/cometbft<1.0.11.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20250207T224745-150000.1.32.1SUSE-SU-2025:0429-1
openSUSELeap 15.6govulncheck-vulndb0.0.20250207T224745-150000.1.32.1SUSE-SU-2025:0429-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250204T220613-1.1openSUSE-SU-2025:14732-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

References

Check your stackJSON