Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zaino-state
  4. ›
  5. GHSA-3whf-vgf2-9w6g

GHSA-3whf-vgf2-9w6g: zaino-state has a Non-Finalized State Reorg — No Cycle Detection or Depth Limit

July 31, 2026

NonFinalizedState::handle_reorg is a recursive, unbounded async function that traverses parent blocks until it finds a common ancestor on the main chain. It has no recursion depth limit and no cycle detection. A malicious or buggy validator can serve a block whose previous_block_hash points back to itself (or forms a cycle with other blocks), causing handle_reorg to infinite-loop, consuming 100% CPU and never making sync progress. Additionally, update() contains an .expect("empty snapshot impossible") that panics if the non-finalized snapshot becomes empty after trimming finalized blocks.

References

  • github.com/advisories/GHSA-3whf-vgf2-9w6g
  • github.com/zingolabs/zaino/commit/428822509bc722eb9727681752686ede9bc87e77
  • github.com/zingolabs/zaino/commit/d874295f1377bec7fd712ef75b364181b8c77d46
  • github.com/zingolabs/zaino/commit/e05112aac54ec3cdb6da29fbc143ea710b32f009
  • github.com/zingolabs/zaino/pull/1172
  • github.com/zingolabs/zaino/security/advisories/GHSA-3whf-vgf2-9w6g

Code Behaviors & Features

Detect and mitigate GHSA-3whf-vgf2-9w6g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.4.1

Fixed versions

  • 0.4.1

Solution

Upgrade to version 0.4.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

cargo/zaino-state/GHSA-3whf-vgf2-9w6g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:52 +0000.