Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zebra-network
  4. ›
  5. CVE-2026-40881

CVE-2026-40881: Zebra: addr/addrv2 Deserialization Resource Exhaustion

April 18, 2026

When deserializing addr or addrv2 messages, which contain vectors of addresses, Zebra would fully deserialize them up to a maximum length (over 233,000) that was derived from the 2 MiB message size limit. This is much larger than the actual limit of 1,000 messages from the specification. Zebra would eventually check that limit but, at that point, the memory for the larger vector was already allocated. An attacker could cause out-of-memory aborts in Zebra by sending multiple such messages over different connections.

References

  • github.com/ZcashFoundation/zebra
  • github.com/ZcashFoundation/zebra/security/advisories/GHSA-xr93-pcq3-pxf8
  • github.com/advisories/GHSA-xr93-pcq3-pxf8
  • nvd.nist.gov/vuln/detail/CVE-2026-40881

Code Behaviors & Features

Detect and mitigate CVE-2026-40881 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.1

Fixed versions

  • 5.0.1

Solution

Upgrade to version 5.0.1 or above.

Impact 5.8 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

cargo/zebra-network/CVE-2026-40881.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 19 Apr 2026 00:18:18 +0000.