{"id":"CVE-2026-52733","state":"PUBLISHED","title":"ZEBRA: Persistent on-disk corruption of Sapling/Orchard subtree roots after chain fork via pop_tip","description":"ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a natural or attacker-influenced chain fork can leave stale Sapling and Orchard note-commitment subtree roots in Zebra state. In zebra-state/src/service/non_finalized_state/chain.rs, Chain::pop_tip removed a reverted tip block but did not remove subtree entries whose end_height belonged to that block, unlike the cleanup performed by pop_root. When the winning fork later finalized, the abandoned branch's stale subtree data could be written to RocksDB and survive node restarts. The corrupted history can cause z_getsubtreesbyindex consumers such as lightwalletd and light wallets to receive incorrect subtree roots, producing wallet synchronization failures or incorrect wallet state and requiring a full state rebuild for recovery. This issue is fixed in version 4.5.0.","publishedAt":"2026-08-18T19:24:44.005Z","updatedAt":"2026-08-19T15:20:18.272Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["ZcashFoundation zebra","ZcashFoundation zebra-state"],"affected":[{"vendor":"ZcashFoundation","product":"zebra","versions":[{"version":"< 4.5.0","status":"affected"}]},{"vendor":"ZcashFoundation","product":"zebra-state","versions":[{"version":"< 7.0.0","status":"affected"}]}],"references":["https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-2gf8-q9rr-jq3h","https://github.com/ZcashFoundation/zebra/commit/1440b43ca7df59aca948090d45117557b217a6cd","https://github.com/ZcashFoundation/zebra/releases/tag/v4.5.0"],"weaknesses":["CWE-459","CWE-672"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/52xxx/CVE-2026-52733.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-52733","state":"PUBLISHED","datePublished":"2026-08-18T19:24:44.005Z","dateUpdated":"2026-08-19T15:20:18.272Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-08T14:00:43.572Z"},"containers":{"cna":{"title":"ZEBRA: Persistent on-disk corruption of Sapling/Orchard subtree roots after chain fork via pop_tip","descriptions":[{"lang":"en","value":"ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a natural or attacker-influenced chain fork can leave stale Sapling and Orchard note-commitment subtree roots in Zebra state. In zebra-state/src/service/non_finalized_state/chain.rs, Chain::pop_tip removed a reverted tip block but did not remove subtree entries whose end_height belonged to that block, unlike the cleanup performed by pop_root. When the winning fork later finalized, the abandoned branch's stale subtree data could be written to RocksDB and survive node restarts. The corrupted history can cause z_getsubtreesbyindex consumers such as lightwalletd and light wallets to receive incorrect subtree roots, producing wallet synchronization failures or incorrect wallet state and requiring a full state rebuild for recovery. This issue is fixed in version 4.5.0."}],"affected":[{"vendor":"ZcashFoundation","product":"zebra","versions":[{"version":"< 4.5.0","status":"affected"}]},{"vendor":"ZcashFoundation","product":"zebra-state","versions":[{"version":"< 7.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-2gf8-q9rr-jq3h","name":"https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-2gf8-q9rr-jq3h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ZcashFoundation/zebra/commit/1440b43ca7df59aca948090d45117557b217a6cd","name":"https://github.com/ZcashFoundation/zebra/commit/1440b43ca7df59aca948090d45117557b217a6cd","tags":["x_refsource_MISC"]},{"url":"https://github.com/ZcashFoundation/zebra/releases/tag/v4.5.0","name":"https://github.com/ZcashFoundation/zebra/releases/tag/v4.5.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-459","lang":"en","description":"CWE-459: Incomplete Cleanup","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-672","lang":"en","description":"CWE-672: Operation on a Resource after Expiration or Release","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T19:24:44.005Z"},"source":{"advisory":"GHSA-2gf8-q9rr-jq3h","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T15:20:08.584025Z","id":"CVE-2026-52733","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T15:20:18.272Z"}}]}}}