DEV Community

johnettagaweraks
johnettagaweraks

Posted on

Zebra must score invalid scripts without stalling consensus

Zebra must score invalid scripts without stalling consensus

CVE-2026-123555 affects the Zcash Foundation's Zebra node from 2.3.0 before 7.0.0. The flaw lets unauthenticated peers evade misbehavior scoring by sending transactions or blocks with invalid transparent scripts.

The advisory describes two resource paths. An attacker can flood the mempool with transactions whose scripts fail, or serve forged version 5 block bodies with altered scriptSig bytes. Repeated verification failures consume CPU and can stall block synchronization.

The security boundary is peer misbehavior accounting. A node should score invalid data even when processing it fails in an unexpected path. If verification errors bypass the score, a peer can keep reconnecting and sending work that the node cannot cheaply classify.

Upgrade Zebra to 7.0.0 or later. Deployments that use the separate consensus crate should move zebra-consensus to 18.0.0 or later. After upgrading, confirm that the node accepts valid blocks and that peer scoring is visible in metrics.

Operators can reduce the blast radius by limiting inbound peer slots, separating public peers from trusted infrastructure and alerting on sustained verification queues. Those controls do not replace the patch. They give the team time to respond when sync falls behind.

Monitor peer bans, disconnected peers, failed script verification, mempool admission failures and block-sync lag. A burst from a small peer group is more actionable than an aggregate CPU alert because it can support a temporary network policy.

Node operators should preserve logs and peer addresses before restarting. Restarting clears local state and may obscure the sequence that led to the stall. If a trusted peer is also affected, isolate its connectivity while the fleet update proceeds.

The patched scoring logic closes the evasion path. The incident also demonstrates why consensus systems need resource accounting for malformed data, not only for successfully parsed messages.

References

Top comments (0)