blob: e476dd6fbfdabccbfa7afac5fa11b08c4b47acb7 [file] [edit]
{
"schema_version": "1.3.1",
"id": "GO-2025-4025",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"GHSA-hrhf-2vcr-ghch"
],
"summary": "CometBFT's invalid BitArray handling can lead to network halt in github.com/cometbft/cometbft",
"details": "CometBFT's invalid BitArray handling can lead to network halt in github.com/cometbft/cometbft",
"affected": [
{
"package": {
"name": "github.com/cometbft/cometbft",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.37.16"
},
{
"introduced": "0.38.0-alpha.1"
},
{
"fixed": "0.38.19"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/cometbft/cometbft/consensus",
"symbols": [
"BaseWAL.OnStart",
"BaseWAL.SearchForEndHeight",
"Handshaker.Handshake",
"Handshaker.HandshakeWithContext",
"Handshaker.ReplayBlocks",
"Handshaker.ReplayBlocksWithContext",
"MsgFromProto",
"NewState",
"NewValidBlockMessage.ValidateBasic",
"PeerState.ApplyHasVoteMessage",
"PeerState.ApplyVoteSetBitsMessage",
"PeerState.EnsureVoteBitArrays",
"PeerState.InitProposalBlockParts",
"PeerState.PickSendVote",
"PeerState.PickVoteToSend",
"PeerState.SetHasProposal",
"PeerState.SetHasProposalBlockPart",
"PeerState.SetHasVote",
"ProposalPOLMessage.ValidateBasic",
"Reactor.AddPeer",
"Reactor.OnStart",
"Reactor.Receive",
"Reactor.SwitchToConsensus",
"RunReplayFile",
"State.OnStart",
"State.OpenWAL",
"State.ReplayFile",
"VoteSetBitsMessage.ValidateBasic",
"WALDecoder.Decode",
"WALFromProto",
"WALGenerateNBlocks",
"WALWithNBlocks"
]
},
{
"path": "github.com/cometbft/cometbft/libs/bits",
"symbols": [
"BitArray.And",
"BitArray.Or",
"BitArray.PickRandom",
"BitArray.SetIndex",
"BitArray.Sub",
"BitArray.UnmarshalJSON",
"BitArray.copyBits",
"BitArray.getNumTrueIndices",
"BitArray.setIndex",
"NewBitArray",
"NewBitArrayFromFn"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/cometbft/cometbft/security/advisories/GHSA-hrhf-2vcr-ghch"
},
{
"type": "FIX",
"url": "https://github.com/cometbft/cometbft/commit/be5677c3e58f998b7f67bb6186dd2c9b81a041a1"
},
{
"type": "FIX",
"url": "https://github.com/cometbft/cometbft/commit/dcb1f265b59477be40804f7ccdc4fb30612d6a4f"
},
{
"type": "WEB",
"url": "https://github.com/cometbft/cometbft/releases/tag/v0.37.16"
},
{
"type": "WEB",
"url": "https://github.com/cometbft/cometbft/releases/tag/v0.38.19"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2025-4025",
"review_status": "REVIEWED"
}
}