nday
GHSA-c8w6-x74f-vmg3

zebrad vulnerable to full node denial of service via crafted Sapling receiver in z_listunifiedreceivers

披露于 。已有补丁记录,修复版本是 zebra-rpc 8.0.0、zebrad 4.5.0。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 攻击途径网络无需用户交互 软件包生态crates.io
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

网络
GitHub 公告 GHSA-c8w6-x74f-vmg3 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 AV:N
无需用户交互
GitHub 公告 GHSA-c8w6-x74f-vmg3 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 UI:N
crates.io
GHSA-c8w6-x74f-vmg3:rust 包 zebra-rpc、zebrad
当前阶段
PAT
披露
CVSS
6.5 MEDIUM v3.1

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
07-02T19:37Z
PAT补丁
zebra-rpc 8.0.0、zebrad 4.5.0
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

### 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.

以上是 GitHub 安全公告 GHSA-c8w6-x74f-vmg3 中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS 3.1 向量,来自 GitHub 安全公告 GHSA-c8w6-x74f-vmg3。

事件记录

+DIS披露

ghsa 报告了披露事件。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 474047,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-c8w6-x74f-vmg3",
  "occurred_at": "2026-07-02T19:37:58Z",
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-c8w6-x74f-vmg3",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-c8w6-x74f-vmg3",
    "withdrawn_at": null
  }
}
时间未知来源未给出时间
+PAT补丁发布

公告给出修复版本 zebra-rpc 8.0.0、zebrad 4.5.0。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 474048,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-c8w6-x74f-vmg3",
  "occurred_at": null,
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-c8w6-x74f-vmg3",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 6.5,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Input Validation",
        "cwe_id": "CWE-20"
      },
      {
        "name": "Uncaught Exception",
        "cwe_id": "CWE-248"
      },
      {
        "name": "Reachable Assertion",
        "cwe_id": "CWE-617"
      },
      {
        "name": "Improper Check for Unusual or Exceptional Conditions",
        "cwe_id": "CWE-754"
      }
    ],
    "ghsa_id": "GHSA-c8w6-x74f-vmg3",
    "packages": [
      {
        "name": "zebra-rpc",
        "ecosystem": "rust",
        "first_patched_version": "8.0.0",
        "vulnerable_version_range": "<= 7.0.0"
      },
      {
        "name": "zebrad",
        "ecosystem": "rust",
        "first_patched_version": "4.5.0",
        "vulnerable_version_range": "<= 4.4.1"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-c8w6-x74f-vmg3",
      "https://github.com/ZcashFoundation/zebra/blob/d4cd662c716382f6397d2a730148025a1ca79fec/Cargo.toml#L305",
      "https://github.com/ZcashFoundation/zebra/blob/d4cd662c716382f6397d2a730148025a1ca79fec/zebra-rpc/src/methods.rs#L2867-L2914",
      "https://github.com/advisories/GHSA-c8w6-x74f-vmg3"
    ],
    "fix_commit_urls": [],
    "github_reviewed_at": "2026-07-02T19:37:58Z",
    "advisory_updated_at": "2026-11-13T02:44:03Z",
    "source_code_location": "https://github.com/ZcashFoundation/zebra",
    "advisory_published_at": "2026-07-02T19:37:58Z"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

讨论

0 条评论

还没有评论。