Advisory

GHSA-r9rv-9mh8-pxf4

Also known as: None

Summary

Nervos CKB BlockTimeTooNew should not be considered as invalid block

Details

Impact

Currently, when a node receives a block in future according to its local wall clock, it will mark the block as invalid and ban the peer.

If the header's timestamp is more than 15 seconds ahead of our current time. In that case, the header may become valid in the future, and we don't want to disconnect a peer merely for serving us one too-far-ahead block header, to prevent an attacker from splitting the network by mining a block right at the 15 seconds boundary.

Patches

Upgrade to v0.33.1 or above.

Workarounds
Don't ban peer serving too-far-ahead block header.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-02-02 22:23 UTC
Modified
2024-02-02 22:23 UTC

Affected packages and fixes

ckb

crates.io · All systems

Affected

  • introduced 0, fixed 0.33.1 (semver)

Fixed versions

0.33.1

Fix

  • Fixed version 0.33.1
    cargo update -p ckb --precise 0.33.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences