Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-48025 EUVD-2026-49931GHSA-8h84-fhqq-q58vGO-2026-5255

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

Published Jul 28, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

Description

nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.7, 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. This issue has been patched in version 0.3.7.

Affected products

VendorProductAffectedFixed
juev nebula-mesh < 0.3.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/forgekeep/nebula-mesh < 0.3.7 0.3.7 GHSA-8h84-fhqq-q58v
Go github.com/juev/nebula-mesh < 0.3.7 0.3.7 GHSA-8h84-fhqq-q58v

Advisories 1

References