Skip to content

x/vulndb: potential Go vuln in github.com/cometbft/cometbft: GHSA-hrhf-2vcr-ghch #4025

@GoVulnBot

Description

@GoVulnBot

Advisory GHSA-hrhf-2vcr-ghch references a vulnerability in the following Go modules:

Module
github.com/cometbft/cometbft

Description:
Name: ASA-2025-003: Invalid BitArray handling can lead to network halt
Criticality: High (Considerable Impact; Possible Likelihood per ACMv1.2)
Affected versions: <= v0.38.18, <= v0.37.15, and main development branches
Affected users: Validators, Full nodes, Users

Description

A bug was discovered in CometBFT's handling of BitArray's that have a mismatch between the BitArray's expected number of Elems for the specified number of Bits. Additional validation was added to prevent processing...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/cometbft/cometbft
      non_go_versions:
        - introduced: TODO (earliest fixed "0.38.19", vuln range ">= 0.38.0-alpha.1, <= 0.38.18")
        - introduced: TODO (earliest fixed "0.37.16", vuln range "<= 0.37.15")
      vulnerable_at: 1.0.1
summary: CometBFT's invalid BitArray handling can lead to network halt in github.com/cometbft/cometbft
ghsas:
    - GHSA-hrhf-2vcr-ghch
references:
    - advisory: https://github.com/advisories/GHSA-hrhf-2vcr-ghch
    - advisory: https://github.com/cometbft/cometbft/security/advisories/GHSA-hrhf-2vcr-ghch
    - fix: https://github.com/cometbft/cometbft/commit/be5677c3e58f998b7f67bb6186dd2c9b81a041a1
    - fix: https://github.com/cometbft/cometbft/commit/dcb1f265b59477be40804f7ccdc4fb30612d6a4f
    - web: https://github.com/cometbft/cometbft/releases/tag/v0.37.16
    - web: https://github.com/cometbft/cometbft/releases/tag/v0.38.19
notes:
    - fix: 'module merge error: could not merge versions of module github.com/cometbft/cometbft: invalid or non-canonical semver version (found TODO (earliest fixed "0.38.19", vuln range ">= 0.38.0-alpha.1, <= 0.38.18"))'
source:
    id: GHSA-hrhf-2vcr-ghch
    created: 2025-10-14T20:01:23.466487687Z
review_status: UNREVIEWED

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions