ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, an unauthenticated P2P peer can cause the mempool download pipeline to retain transactions after verification reaches the outer RATE_LIMIT_DELAY timeout. In zebrad/src/components/mempool/downloads.rs, Downloads::poll_next removed cancel_handles entries after success and ordinary verification errors, but tokio::time::error::Elapsed did not carry the UnminedTxId needed to remove the timed-out entry. Each retained cancel_handles entry could hold a full Gossip::Tx(UnminedTx), while normal mined-transaction cleanup could not match attacker transactions and no periodic garbage collection or count cap existed. Sustained traffic therefore caused monotonic memory growth until swap pressure degraded the node or the operating system terminated the zebrad process for exhausting memory. This issue is fixed in version 4.5.0.
ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, an unauthenticated IPv4 peer can deterministically terminate a synced Zebra node using the default Linux dual-stack listener configuration. The handshake path canonicalized an IPv4-mapped IPv6 PeerSocketAddr such as ::ffff:127.0.0.1 to plain IPv4 before storing it through MetaAddr::new_connected, but the mempool misbehavior path forwarded the raw transient address to MetaAddrChange::UpdateMisbehavior. In zebra-network/src/meta_addr.rs, apply_to_meta_addr then compared the canonical address-book entry with the raw update address and reached its unexpected address mismatch assertion. After the misbehavior batch flush, panic equals abort terminated zebrad; the peer only needed to complete a P2P handshake and advertise an invalid mempool transaction. This issue is fixed in version 4.5.0.
On 32-bit platforms, the jxl-grid library has an integer overflow vulnerability during image decoding that leads to out-of-bounds writes. This occurs when calculating the length for grid allocation, allowing a crafted JPEG XL image to trigger unsafe memory writes. The flaw can be exploited via either a huge frame size or a combination of a large canvas with a small cropped frame. This vulnerability is fixed in version 0.6.2.
### Summary
`jxl-oxide` exposes a public safe API that can construct an undersized `FrameBuffer` due to unchecked `usize` multiplication, which immediately trigger panic while initializing the buffer in normal decoding path.
Additionally, calling the safe grouped buffer accessors afterward can create invalid oversized slices from a much smaller allocation, causing undefined behavior; however normal decoding path never reaches UB, because these methods are never used within `jxl-oxide`.
### Impact
On 32-bit platforms this can cause panic by accessing out-of-range indices, making it a DoS vulnerability.
### Summary
Logic bug in `decode_simple_table_slow` may cause integer arithmetic overflow when decoding Modular image with certain kind of MA tree, which may panic with `overflow-checks` enabled.
### Impact
Denial of service: any application passing untrusted JXL data to `JxlImage::render_frame` (or equivalent) can be
crashed. Affects all builds with overflow checks enabled, which includes debug builds and any release build
that sets `overflow-checks = true` in Cargo.toml or `[profile.*]`.
No memory corruption is possible — the panic fires before any unsafe code is reached.
A vulnerability in zebrad up to version 4.4.1 and zebra-state prior to 7.0.0 causes persistent on-disk corruption of Sapling and Orchard subtree roots after chain forks. This occurs because the pop_tip method does not properly clean up stale subtree root data during fork reversion, leading to corrupted data being written to RocksDB. The corruption affects wallet synchronization via z_getsubtreesbyindex but does not impact consensus validation. Recovery requires rebuilding the state database. Fixed in zebra-state 7.0.0 and zebrad 4.5.0.
Zebra versions up to and including 4.4.1 have a vulnerability in the finalized transparent address balance writer that causes a panic when processing consensus-valid blocks containing long chains of same-address transparent self-spends. This panic leads to a persistent node halt that recurs on restart, effectively stopping the node until patched. The issue is fixed in Zebra 4.4.2 and later.
### Am I affected
You are affected if:
1. You run `zebrad` up to and including `v4.4.1`.
2. Your node accepts inbound P2P connections (`network.listen_addr` is set, which is the default).
### Summary
The P2P codec's `Codec::decode()` method calls `src.reserve(body_len + HEADER_LEN)` after parsing a 24-byte protocol header, using the attacker-claimed `body_len` field. This reserves up to `MAX_PROTOCOL_MESSAGE_LEN` (~2 MiB) of virtual buffer capacity per connection before any body bytes arrive and before the handshake completes.
However, `BytesMut::reserve()` sets virtual capacity without committing physical memory pages. The operating system does not allocate physical RAM until bytes are actually written into the buffer. Since the attacker never sends body bytes, the reserved capacity remains uncommitted. Reproduction of the reporter's PoC (256 threads, 30 seconds of sustained connections) showed negligible RSS impact on the Zebra process.
Zebra's existing mitigations further constrain the practical attack surface: per-IP connection limits (`max_connections_per_ip = 1`), a per-connection accept rate of approximately one per second, and a 3-second handshake timeout that cleans up idle connections.
### Details
At `zebra-network/src/protocol/external/codec.rs:406`, after parsing the 24-byte header and validating the network magic and body length against `MAX_PROTOCOL_MESSAGE_LEN`, the codec calls `src.reserve(body_len + HEADER_LEN)`. The codec is constructed on the bare TCP stream before `negotiate_version()` runs, so the reservation is reachable from any TCP peer that can send 24 bytes.
No legitimate Zcash handshake message (`version`, `verack`) is anywhere close to 2 MiB. The codec makes no distinction between pre-handshake and post-handshake message types when sizing the reservation.
### Patches
The fix defers large buffer reservations until after the handshake completes, or caps the per-message reservation for pre-handshake messages to what `version`/`verack` actually require.
### Workarounds
No workaround is needed. The existing per-IP rate limiting, handshake timeout, and connection limits effectively mitigate the practical impact.
### Impact
Minimal. The reservation affects virtual address space only, not physical memory. Zebra's existing connection-management mitigations (per-IP limits, accept rate, handshake timeout) further constrain the attack. The code path is worth cleaning up for defense-in-depth but does not produce a measurable denial-of-service effect.
### Credit
Reported by `@ouicate` via a private GitHub Security Advisory submission.
### Am I affected
You are affected if:
1. You run `zebrad` up to and including `v4.4.1`.
2. Your `zebrad.toml` sets `rpc.listen_addr` to a TCP address (RPC server is enabled).
3. An attacker can authenticate to the RPC endpoint. With the default `enable_cookie_auth = true`, this requires the attacker to read the `.cookie` file (typically local access). With `enable_cookie_auth = false`, any network client reaching the RPC port can trigger it.
### Summary
The `z_listunifiedreceivers` RPC handler panics when processing a structurally valid Unified Address whose Sapling receiver carries 43 bytes that fail cryptographic validation (`sapling_crypto::PaymentAddress::from_bytes` returns `None` for non-subgroup Jubjub points). The handler calls `.expect("using data already decoded as valid")` on the fallible result. Because Zebra's release profile sets `panic = "abort"`, the panic terminates the entire node process, not just the RPC task.
### Details
`zcash_address::unified::Encoding::decode` validates only the structural envelope of a Unified Address (F4Jumble, bech32m, typecode ordering, 43-byte length for Sapling). It does not validate that the embedded `pk_d` is a valid Jubjub subgroup point or that the diversifier produces a valid `g_d` preimage.
At `zebra-rpc/src/methods.rs:2893`, the handler calls `Address::try_from_sapling(network, data)`, which delegates to `sapling_crypto::PaymentAddress::from_bytes`. When `from_bytes` returns `None` (most random 32-byte strings fail the subgroup check), the `.expect()` fires and the process aborts.
The same crate already handles this correctly in `try_from_unified` at `zebra-chain/src/primitives/address.rs:99-110`, which returns `Err` when `from_bytes` fails. The vulnerable code path bypasses this validated route.
### Patches
zebra-rpc 8.0.0 and zebrad 4.5.0.
Replace `.expect()` with `.map_err(|e| ErrorObject::owned(...))` for proper error propagation, or route through the existing `try_from_unified` path which already handles this case correctly.
### Workarounds
- Disable the RPC server by removing `rpc.listen_addr` from `zebrad.toml`.
- Ensure `enable_cookie_auth = true` (the default) and restrict filesystem access to the `.cookie` file.
- Place a reverse proxy in front of the RPC port that rejects `z_listunifiedreceivers` calls with untrusted address parameters.
### Impact
A single authenticated RPC request terminates the `zebrad` process. The attack is repeatable on restart (the same request triggers the same abort), allowing an attacker to keep the node down indefinitely until the request is filtered upstream. Operators using `lightwalletd` backends, Zaino indexers, or mining pool infrastructure that forward RPC calls to `zebrad` may be exposed if the forwarding path passes through `z_listunifiedreceivers`.
### Credit
Reported by `@robustfengbin` via a private GitHub Security Advisory submission.
### Am I affected
You are affected if:
1. You run `zebrad` up to and including `v4.4.1`.
2. Your node accepts inbound P2P connections.
### Summary
The `read_getblocks` and `read_getheaders` codec paths accepted block locator vectors up to approximately 65,535 entries (the generic `TrustedPreallocate` ceiling derived from `MAX_PROTOCOL_MESSAGE_LEN`), rather than the protocol-specification limit of 101 entries (matching zcashd's `MAX_LOCATOR_SZ`). Each entry in the locator vector triggers a per-hash chain lookup (`HashMap::contains_key` + `RocksDB::contains_hash`) in `find_chain_intersection` on a tokio blocking-pool thread.
A single maximally-sized `getblocks` message occupies one blocking-pool thread for approximately 10–65ms. Under sustained load from multiple peers, this can degrade state-read performance for block validation, RPC, and mempool lookups.
### Details
The `read_headers` codec path already implements the correct pattern: it reads the CompactSize count, validates against `MAX_HEADERS_PER_MESSAGE = 160` before deserialization, and rejects oversized messages. The `read_getblocks` and `read_getheaders` paths were missing this pre-deserialization count check and instead relied on the generic `block::Hash::max_allocation()` bound, which allows `(MAX_PROTOCOL_MESSAGE_LEN - 1) / 32 = 65,535` hashes.
A legitimate block locator is logarithmic in chain length (approximately 30 hashes for the current ~3M-block Zcash chain). Zebra's own send-side cap is `MAX_FIND_BLOCK_HASHES_RESULTS = 500`.
The practical impact requires significant attacker bandwidth (approximately 2 MiB per request) and multiple Sybil peers to meaningfully degrade the blocking pool, which limits real-world exploitability.
### Patches
Patched in Zebra 4.4.2. The fix caps `block::Hash::max_allocation()` at `MAX_BLOCK_LOCATOR_LENGTH = 101`, matching zcashd's `MAX_LOCATOR_SZ`. This causes the deserializer to reject oversized locators before any allocation or iteration occurs.
### Workarounds
No specific workaround is needed. Existing backpressure mechanisms (load shedding, sequential per-peer message processing, connection limits) constrain the practical impact.
### Impact
Under sustained load from multiple Sybil peers, oversized locator vectors can occupy blocking-pool threads and degrade state-read performance. The effect is bounded by connection limits and requires significant attacker bandwidth.
### Credit
Vulnerability identified by `@dingledropper`, who submitted the fix in [PR #10570](https://github.com/ZcashFoundation/zebra/pull/10570). Downstream CPU/blocking-pool impact analysis contributed by `@ouicate`.
SurrealDB versions prior to 3.1.0 silently downgrade the ES512 JWT algorithm to ES384 due to a limitation in the underlying jsonwebtoken crate, causing authentication handshake failures when using the correct P-521 key type. This does not allow token forgery or compromise data integrity, but results in failed authentication when external systems expect true ES512 signatures. The issue is fixed in SurrealDB 3.1.0, which blocks use of ES512 with clear errors and deprecation warnings. Users should update to 3.1.0 or later and reconfigure JWT access methods to supported algorithms such as ES384.
SurrealDB versions prior to 3.1.0 contain a vulnerability where port-specific --deny-net rules can be bypassed via HTTP redirects. An authenticated user with access to http::* functions can cause SurrealDB to follow redirects to denied host:port combinations because the redirect handling drops the port information when matching deny rules. This allows circumvention of port-scoped network restrictions, potentially exposing internal services or sensitive endpoints. The issue is fixed in version 3.1.0 and later.
SurrealDB versions prior to 3.1.0 contain a vulnerability in the JSON Patch `copy` and `move` operations used in `UPDATE … PATCH` statements. Specifically, using an empty `from` pointer causes the entire record to be copied, bypassing field-level SELECT permissions and exposing protected field values under new field names. This vulnerability allows an authenticated user with update patch permissions to read any field in the targeted record regardless of select restrictions. The issue is limited to confidentiality impact and does not expose data from other records. Versions 3.1.0 and later include a patch that rejects empty `from` pointers, mitigating this issue.
SurrealDB versions prior to 3.1.0 contain a vulnerability where authenticated users with UPDATE permissions can read field values hidden by field-level SELECT permissions through error messages. This occurs because arithmetic operators and the extend function embed raw operand values in error messages, revealing sensitive data. A patch is available in version 3.1.0 and later that replaces raw operand values in errors with their type names, preventing information disclosure.
SurrealDB versions prior to 3.1.0 contain an authorization bypass vulnerability in the KILL statement used to terminate live query subscriptions. The implementation verifies database-level access but fails to confirm that the requesting user owns the live query being terminated. This allows any authenticated user with database-level access to terminate other users' live queries silently, disrupting real-time data subscriptions and breaking multi-tenant isolation. The vulnerability requires knowledge of the target live query UUID, which may be exposed through logs or shared dashboards. The issue has been patched in version 3.1.0 with an ownership verification check.
SurrealDB versions prior to 3.1.0 contain a vulnerability where authenticated users with select permission on a table can bypass select permissions on other tables reachable via graph edges or back-references. This allows reading records from those target tables despite their select permissions being set to NONE. The issue arises because certain graph traversal operations fetch records directly from storage without enforcing the target table's select permissions. The vulnerability affects confidentiality within the current database but does not impact namespace or database isolation. Versions 3.1.0 and later include a fix that enforces select permissions correctly during graph traversals.
SurrealDB versions prior to 3.1.0 contain a vulnerability where user-supplied expressions in SELECT and update-variant statements are evaluated before permission checks, allowing authenticated users to bypass table-level SELECT permissions and read full record contents. This flaw is limited to the current database and does not affect namespace or database isolation boundaries. A patch is available in version 3.1.0 and later that corrects the permission check order. Mitigations include disabling scripting functions to block the most direct exfiltration method and restricting query access for untrusted users.
SurrealDB versions prior to 3.1.0 contain a denial of service vulnerability in their JSON and value parser due to missing enforcement of recursion depth limits on nested JSON tokens. An unauthenticated attacker can exploit this by sending a deeply nested JSON payload to the WebSocket /rpc endpoint, causing server memory exhaustion and process crash. Versions 3.1.0 and later include a patch that enforces the recursion depth limit, mitigating this issue.
A path traversal vulnerability in sevenz-rust2 prior to version 0.21.1 allows extraction of 7z archives to write files outside the intended destination directory. This could lead to overwriting or creating files in arbitrary locations. The issue is fixed in version 0.21.1 by adding validation of archive entry paths during extraction.
The 'mise' tool versions from 2026.3.15 up to but not including 2026.6.4 allow local project configuration files (.mise.toml) to specify a 'github.credential_command' that is executed without trust validation. This enables an attacker who can place a malicious .mise.toml in a repository to execute arbitrary shell commands as the victim user when the victim runs a GitHub-related mise command and no higher-priority GitHub token environment variable is set. The vulnerability is fixed in version 2026.6.4.