GO-2023-1882

    Dashboard / Vulnerabilities / GO-2023-1882

    GO-2023-1882

    Published: 6 Jul 2023Last Modified: 20 May 2024

    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.

    Affected packages

    Package

    Name: github.com/cometbft/cometbft

    Purl: pkg:golang/github.com/cometbft/cometbft

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.37.1
    Fixed -0.37.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2023-1882 | CVE-DB