Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/juev/nebula-mesh
  4. ›
  5. CVE-2026-48025

CVE-2026-48025: nebula-mesh: Decrypted CA private key persists in heap after signing

June 10, 2026

internal/pki/resolver.go:36-64 constructs a CAManager with the plaintext ed25519.PrivateKey after unwrapping via the master key; internal/pki/ca.go:13-16 stores it. Callers at internal/api/enroll.go:116, internal/api/updates.go:297, and internal/api/mobile_bundle.go:40 use the manager for one Sign() and drop the reference on function return — but the underlying slice contents are not wiped before release.

The keystore package’s contract (internal/keystore/keystore.go doc: “Callers MUST zeroise the returned plaintext DEK as soon as it is no longer needed”) is not met by the CAManager consumer. Decrypted CA private keys persist in process heap until Go’s GC scavenges the underlying slice — minutes to hours under load, indefinitely on idle servers.

References

  • github.com/advisories/GHSA-8h84-fhqq-q58v
  • github.com/forgekeep/nebula-mesh/commit/bca1d5914fbaf3517d3b86145a802c00de4a8122
  • github.com/forgekeep/nebula-mesh/releases/tag/v0.3.7
  • github.com/juev/nebula-mesh/security/advisories/GHSA-8h84-fhqq-q58v
  • nvd.nist.gov/vuln/detail/CVE-2026-48025

Code Behaviors & Features

Detect and mitigate CVE-2026-48025 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 0.3.7

Fixed versions

  • 0.3.7

Solution

Upgrade to version 0.3.7 or above.

Weakness

  • CWE-244: Improper Clearing of Heap Memory Before Release ('Heap Inspection')

Source file

go/github.com/juev/nebula-mesh/CVE-2026-48025.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:24:11 +0000.