GO-2023-1882
Dashboard / Vulnerabilities / GO-2023-1882
GO-2023-1882
Summary: Deadlock in github.com/cometbft/cometbft/consensus
Details: An internal modification to the way PeerState is serialized to JSON introduced a deadlock when the new function MarshalJSON is called. This function can be called in two ways. The first is via logs, by setting the consensus logging module to "debug" level (which should not happen in production), and setting the log output format to JSON. The second is via RPC dump_consensus_state.
References: https://github.com/cometbft/cometbft/security/advisories/GHSA-mvj3-qrqh-cjvr, https://github.com/cometbft/cometbft/pull/524, https://github.com/cometbft/cometbft/pull/863, https://github.com/cometbft/cometbft/pull/865
Affected packages
Package
Name: github.com/cometbft/cometbft
Purl: pkg:golang/github.com/cometbft/cometbft
Affected ranges
Type: SEMVER
Events:
