zebra-rpc
Affected
- introduced
0, fixed8.0.0(semver)
Fixed versions
8.0.0
Fix
- Fixed version
8.0.0cargo update -p zebra-rpc --precise 8.0.0
Advisory
Also known as: CVE-2026-52731
zebrad has full node denial of service via non-ASCII LongPollId in getblocktemplate
Am I affected
You are affected if:
zebrad up to and including v4.4.1.zebrad.toml sets rpc.listen_addr to a TCP address (RPC server is enabled).enable_cookie_auth = true, this requires the attacker to read the .cookie file. With enable_cookie_auth = false, any network client reaching the RPC port can trigger it.Summary
The getblocktemplate RPC handler panics when parsing a LongPollId parameter that contains non-ASCII (multi-byte UTF-8) characters. The handler performs byte-index string slicing on the user-supplied string, which panics in Rust when a byte index falls within a multi-byte character boundary. Because Zebra's release profile sets panic = "abort", the panic terminates the entire node process.
Details
The getblocktemplate handler receives a user-supplied LongPollId string and slices it at fixed byte offsets to extract the encoded tip hash and tip height. When the string contains multi-byte UTF-8 characters, a byte-index slice can land in the middle of a character, causing Rust's str indexing to panic with "byte index is not a char boundary."
Under the panic = "abort" release profile, this panic terminates the entire zebrad process rather than just the RPC task.
Patches
zebra-rpc 8.0.0 and zebrad 4.5.0.
Replace byte-index string slicing with character-aware parsing or validate that the LongPollId string contains only ASCII characters before slicing.
Workarounds
rpc.listen_addr from zebrad.toml.enable_cookie_auth = true (the default) and restrict filesystem access to the .cookie file.LongPollId parameters are ASCII-only before forwarding.Impact
A single authenticated RPC request terminates the zebrad process. Same impact profile as GHSA-c8w6-x74f-vmg3: repeatable on restart, affects mining pools and infrastructure that forward getblocktemplate calls.
Credit
Reported by @sangsoo-osec via a private GitHub Security Advisory submission.
Medium Basis: The source's own band: MODERATE
0, fixed 8.0.0 (semver)8.0.0
8.0.0cargo update -p zebra-rpc --precise 8.0.00, fixed 4.5.0 (semver)4.5.0
4.5.0cargo update -p zebrad --precise 4.5.0Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0