9.3 CRITICAL
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): None (N)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): None (N)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): High (H)
- Subsequent System Impact Availability (SA): High (H)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): None (N)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): None (N)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): High (H)
- Modified Subsequent System Impact Availability (MSA): High (H)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
Activity log
- Created suggestion
ZEBRA: Consensus divergence via P2SH sigop undercount in pure-Rust disabled-opcode parser
ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, Zebra can accept a block that zcashd rejects because the P2SH signature-operation counter undercounts redeem scripts containing a disabled opcode followed by signature opcodes. In zebra-script/src/lib.rs, p2sh_input_sigop_count used the pure-Rust script::Code::sig_op_count path, whose try_fold parser stops at disabled opcodes such as OP_CODESEPARATOR and returns only the partial count accumulated before the error. The zcashd reference implementation continues static signature-operation counting through disabled opcodes, so an attacker can broadcast P2SH spends that Zebra counts below MAX_BLOCK_SIGOPS while zcashd counts above the 20,000-operation limit. If a Zebra miner includes those transactions, Zebra validators accept the block while zcashd validators reject it, creating a consensus chain split that affects network integrity and availability without requiring the attacker to produce a block. This issue is fixed in version 4.5.0.
References
Affected products
- ==< 4.5.0
Matching in nixpkgs
pkgs.typstPackages.zebra
None
pkgs.typstPackages.zebraw
None
pkgs.typstPackages.zebra-notes
None
pkgs.typstPackages.zebra_0_1_0
None
pkgs.typstPackages.zebraw_0_1_0
None
pkgs.typstPackages.zebraw_0_2_0
None
pkgs.typstPackages.zebraw_0_3_0
None
pkgs.typstPackages.zebraw_0_4_0
None
pkgs.typstPackages.zebraw_0_4_1
None
pkgs.typstPackages.zebraw_0_4_2
None
pkgs.typstPackages.zebraw_0_4_3
None
pkgs.typstPackages.zebraw_0_4_4
None
pkgs.typstPackages.zebraw_0_4_5
None
pkgs.typstPackages.zebraw_0_4_6
None
pkgs.typstPackages.zebraw_0_4_7
None
pkgs.typstPackages.zebraw_0_4_8
None
pkgs.typstPackages.zebraw_0_5_0
None
pkgs.typstPackages.zebraw_0_5_1
None
pkgs.typstPackages.zebraw_0_5_2
None
pkgs.typstPackages.zebraw_0_5_3
None
pkgs.typstPackages.zebraw_0_5_4
None
pkgs.typstPackages.zebraw_0_5_5
None
pkgs.typstPackages.zebraw_0_6_0
None
pkgs.typstPackages.zebraw_0_6_1
None
pkgs.typstPackages.zebraw_0_6_3
None
pkgs.typstPackages.zebra-notes_0_1_0
None