Zebra 6.4.2: emergency patch for remote crash
A high-severity vulnerability that lets a single message halt a node was found in 6.4.0 and 6.4.1, and both versions were recalled. Operators of those versions should upgrade to 6.4.2 immediately.
The Zcash Foundation released Zebra 6.4.2 as an emergency security release. A high-severity vulnerability was found in Zebra 6.4.0 and 6.4.1 that lets any peer halt a node with a single network message. Both versions have been recalled, and nodes running them must upgrade to 6.4.2 immediately. Versions 6.3.0 and earlier are not affected, and 6.4.2 also includes the sync-stall fix shipped in 6.4.1.
The vulnerability is GHSA-h5rr-8pqv-grp9, with High severity. When Zebra 6.4.0 moved transaction parsing into the shared zcash_primitives library, it lost the check that rejects v6 transactions with a consensus branch ID earlier than NU6.3. Zebra can parse such transactions but cannot reserialize them; it reserialized every received transaction to compute its size and assumed this step could not fail. As a result, one malicious tx message shut the node down.
The attack required no authentication, no completed handshake and no special configuration, and the same attack could be repeated right after a restart to keep a node down. No configuration change could remove the exposure. The impact was limited to availability, however, with no effect on consensus or funds. The issue was first found by Google OSS-Fuzz's continuous fuzzing, and @SphereDonout and @v12security reported it independently after 6.4.0 shipped. 6.4.2 restores the parse-time check so such transactions are rejected as soon as they are received.
A recall notice was attached to the GitHub release pages for 6.4.0 and 6.4.1, the zfnd/zebra Docker tags were deleted, and the affected zebrad versions on crates.io were yanked. Every feature and fix of both versions is in 6.4.2, so nothing is lost by upgrading. 6.4.2 is available from the GitHub release (with Linux binaries for x86_64 and aarch64), crates.io, and Docker Hub (zfnd/zebra:6.4.2). Library users should upgrade to zebra-chain v13.0.1, which includes the fix.
This summary is based on the original; check the original for exact details.