ZEBRA: Full node denial of service via non-ASCII LongPollId in getblocktemplate
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in zebra-rpc 8.0.0 and zebrad 4.5.0.
ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, an attacker authenticated to an enabled Zebra RPC endpoint can terminate zebrad by supplying a getblocktemplate LongPollId containing multi-byte UTF-8 characters. In zebra-rpc/src/methods/types/long_poll.rs, LongPollId::from_str originally checked the input byte length and then sliced fixed byte ranges to parse encoded fields. A slice boundary can land inside a multi-byte character and trigger Rust's byte index is not a char boundary panic. Zebra release builds use panic equals abort, so one malformed authenticated RPC request terminates the entire node process and can be repeated after restart. This issue is fixed in version 4.5.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| ZcashFoundation | <8.0.0, <4.5.0 | ||
| cargo: zebra-rpc | <=7.0.0 | 8.0.0 | |
| cargo: zebrad | <=4.4.1 | 4.5.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in zebra-rpc (Cargo), strongest first
Embed
A live severity badge for an advisory, README or ticket