# CometBFT's invalid BitArray handling can lead to network halt

Advisory record · `GHSA-hrhf-2vcr-ghch`

- **Identifiers:** `GHSA-hrhf-2vcr-ghch` · `GO-2025-4025`
- **State:** Confirmed
- **Severity:** CVSS 4.0, no score published
- **Critical:** No
- **Weakness (CWE):** [CWE-228](https://cwe.mitre.org/data/definitions/228.html)
- **Tags:** [CWE-228](https://agentprime.io/advisories/tag/cwe-228.md)
- **Published:** 14 Oct 2025
- **Updated:** 18 Nov 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Oct 2025, 19:57 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/cometbft/cometbft` (Go): affected `<0.37.16 || >=0.38.0-alpha.1, <0.38.19`; fixed in `0.37.16`, `0.38.19`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- Score not published, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 14 Oct 2025. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-hrhf-2vcr-ghch](https://github.com/advisories/GHSA-hrhf-2vcr-ghch)
- [OSV: GHSA-hrhf-2vcr-ghch](https://osv.dev/vulnerability/GHSA-hrhf-2vcr-ghch)
- <https://github.com/cometbft/cometbft/security/advisories/GHSA-hrhf-2vcr-ghch>
- <https://github.com/cometbft/cometbft/commit/be5677c3e58f998b7f67bb6186dd2c9b81a041a1>
- <https://github.com/cometbft/cometbft/commit/dcb1f265b59477be40804f7ccdc4fb30612d6a4f>
- <https://github.com/cometbft/cometbft>
- <https://github.com/cometbft/cometbft/releases/tag/v0.37.16>
- <https://github.com/cometbft/cometbft/releases/tag/v0.38.19>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hrhf-2vcr-ghch>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hrhf-2vcr-ghch/>. Everything for agents: <https://agentprime.io/llms.txt>.
