# GHSA-r9rv-9mh8-pxf4: Nervos CKB BlockTimeTooNew should not be considered as invalid block

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-02-02T22:23:07.000Z
- Modified: 2024-02-02T22:23:07.000Z

## Description

### 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.

(As written by GitHub Advisory Database.)

## Affected

- ckb (crates.io): before 0.33.1

## References

- <https://github.com/nervosnetwork/ckb/security/advisories/GHSA-r9rv-9mh8-pxf4> (web)
- <https://github.com/nervosnetwork/ckb/commit/760d447c8b600df0539debe80b1625836fc72819> (web)

## Sources

- GitHub Advisory Database: [GHSA-r9rv-9mh8-pxf4](https://github.com/advisories/GHSA-r9rv-9mh8-pxf4), CC-BY-4.0, modified 2024-02-02

---

Page: https://cve.day/GHSA-r9rv-9mh8-pxf4 · Whole record: https://cve.day/GHSA-r9rv-9mh8-pxf4.json · Rebuilt by cve.day 2026-11-25T22:56:42.770Z
