nebula-mesh: CA private key not zeroized on web mobile-bundle error paths
Published Sep 4, 2026
8.7
HIGHCVSS 4.0
EPSS 0.18%
Description
nebula-mesh is a self-hosted control plane for Slack Nebula mesh VPN. Prior to version 0.3.8, the web handler renderMobileBundle passes the real *pki.CAResolver directly into mobilebundle.Build. Inside Build, resolver.LoadByID decrypts the CA's ed25519 private key into a *pki.CAManager, but Build never calls CAManager.Wipe() on any return path. As a result, when a mobile-bundle request goes through the web UI and Build returns — especially on error (missing network, invalid prefix, DB error, signing failure) — the plaintext CA private key remains on the Go heap, unwiped, until garbage collection. An attacker able to read process memory (core dump, swap, memory-scraping) can recover the CA signing key, which would allow minting arbitrary host certificates for the mesh. The API handler already does this correctly: it loads the CAManager, defer caMgr.Wipe(), and wraps it in caManagerResolver. Only the web path is affected. This issue has been patched in version 0.3.8.
Affected products
-
- Version < 0.3.8StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Forgekeep | Nebula-Mesh | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
github.com/forgekeep/nebula-mesh
Go
Introduced 0 Fixed 0.3.8
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/forgekeep/nebula-mesh | 0 | 0.3.8 |
Remediation
No remediation recorded yet.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-71717 Advisory
- https://github.com/advisories/GHSA-2p2f-px33-4vv5 Advisory
- https://github.com/forgekeep/nebula-mesh/commit/1f1ab9aa8472239763d967e3d50a3cd53a1a79b9 x_refsource_MISC
- https://github.com/forgekeep/nebula-mesh/releases/tag/v0.3.8 x_refsource_MISC
- https://github.com/forgekeep/nebula-mesh/security/advisories/GHSA-2p2f-px33-4vv5 x_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-71717 | Advisory | |
| https://github.com/advisories/GHSA-2p2f-px33-4vv5 | Advisory | |
| https://github.com/forgekeep/nebula-mesh/commit/1f1ab9aa8472239763d967e3d50a3cd53a1a79b9 | x_refsource_MISC | |
| https://github.com/forgekeep/nebula-mesh/releases/tag/v0.3.8 | x_refsource_MISC | |
| https://github.com/forgekeep/nebula-mesh/security/advisories/GHSA-2p2f-px33-4vv5 | x_refsource_CONFIRM |
Change history (0)
No recorded changes yet.