Skip to main content

nebula-mesh CVE-2026-47722

| EUVDEUVD-2026-48381 HIGH
Code Injection (CWE-94)
2026-06-08 https://github.com/juev/nebula-mesh GHSA-7hp6-g3pq-3pc3
8.7
CVSS 4.0 · Vendor: https://github.com/juev/nebula-mesh
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain operator credentials on nebula-mesh UI
  2. Delivery
    Submit crafted adv_tun_device or ListenHost override
  3. Exploit
    YAML payload interpolated into rendered config.yml
  4. Execution
    Target agent polls and reloads injected config
  5. Persist
    Host self-promotes to lighthouse or relay
  6. Impact
    Mesh traffic redirected through attacker-controlled node

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated operator account on the nebula-mesh web UI with permission to edit a host's advanced overrides (specifically adv_tun_device or adv_listen_host), and the target agent must subsequently poll for and reload the rendered config - managed agents do this automatically on a signed poll, so no separate trigger is needed. The injected YAML keys must be ones the Nebula agent acts on (lighthouse.am_lighthouse, relay.am_relay, hosts list, etc.) for there to be useful network impact. Severity is amplified when combined with the referenced /api/v1 authorization advisory, which removes the tenant boundary and lets any operator key mutate any other tenant's host overrides. Limiting factors: operator-level authentication on the management UI is required, exploitation is per-host (one injection per targeted agent), and deployments that do not expose the operator UI beyond trusted administrators see this primarily as a privilege-uplift bug within a tenant rather than a cross-tenant compromise.

Impact

No CVSS vector or EPSS score is provided, and the CVE is not on CISA KEV. Inferring from the description, the attack vector is network (the web management UI) but requires an authenticated operator account, making PR:L or PR:H the realistic privilege level - not unauthenticated RCE. Impact is high: a compromised host promoted to lighthouse/relay can intercept mesh traffic, which crosses tenant boundaries when chained with the referenced /api/v1 authorization advisory. Real-world priority is moderate-to-high for any deployment exposing the operator UI to lower-trust users or to the internet, and elevated for multi-tenant deployments where the related authz bug acts as a force multiplier. The advisory notes the agent unconditionally trusts server-issued configs, so this YAML-injection primitive will remain exploitable by any future operator-impersonation flaw.

Exploit ScenarioDerived

An attacker with operator credentials (or, via the companion cross-tenant authz advisory, any operator key in the deployment) opens the host advanced-overrides form for a target host and sets adv_tun_device to a multi-line payload such as 'nebula0\nlighthouse:\n am_lighthouse: true\n hosts: ["10.0.0.1"]\n#'. On the agent's next signed poll, it fetches the rendered config.yml; on reload, the injected lighthouse or am_relay: true keys take effect, causing the host to advertise itself as a lighthouse or relay and attract mesh traffic for interception or redirection. A working payload is published in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

YAML injection in nebula-mesh (juev/nebula-mesh, forked as forgekeep/nebula-mesh) prior to v0.3.2 allows an authenticated operator to inject arbitrary YAML keys into a managed agent's config.yml via the unvalidated adv_tun_device and ListenHost host-override fields. A successful injection lets the attacker self-promote a target host to a Nebula lighthouse or relay, redirecting and intercepting mesh traffic across the overlay network. No public exploit identified at time of analysis, but a detailed PoC payload is published in the GHSA advisory itself.

RemediationAI

Vendor-released patch: 0.3.2 - upgrade github.com/juev/nebula-mesh (or the forgekeep/nebula-mesh fork) to v0.3.2 or later; the fix commit is https://github.com/forgekeep/nebula-mesh/commit/c1506f7344ab375a145a7449b193af3f19bb41ef, which replaces the text/template renderer with gopkg.in/yaml.v3 typed-struct marshaling so structural-break characters are quoted as scalars rather than concatenated into YAML structure. If immediate upgrade is not possible, the advisory recommends enforcing input validation in parseAdvancedFromForm (internal/web/advanced.go) - regex ^[A-Za-z0-9.:\[\]_-]+$ for ListenHost and ^[A-Za-z0-9_-]{1,15}$ for TunDevice (the latter matching Linux IFNAMSIZ) - and rejecting form submissions that fail; the trade-off is that this only closes the known fields and leaves the underlying string-concat renderer vulnerable to any future advanced field added without similar validation. As a defensive control, restrict operator-UI access to a trusted management network and consider patching the related /api/v1 authorization advisory in tandem, since unfixed cross-tenant CRUD turns this single-tenant flaw into a cross-tenant compromise. Full advisory: https://github.com/juev/nebula-mesh/security/advisories/GHSA-7hp6-g3pq-3pc3.

Affected VersionsENISA

nebula-mesh < 0.3.2

Affected Packages

go github.com/juev/nebula-mesh fix: 0.3.2
euvd nebula_mesh fix: 0.3.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nebula-mesh is a Go web UI that manages Slack's Nebula overlay-network agents. The vulnerable code path is in internal/configgen/generator.go (lines 86, 108, 119), where operator-supplied strings are interpolated raw into a text/template that renders the agent's YAML config.yml. The form handler in internal/web/advanced.go (lines 20-35) only calls strings.TrimSpace on the inputs, performing no character-class or shape validation. This is a textbook CWE-94 (Improper Control of Generation of Code) realized as YAML injection: because text/template performs string concatenation rather than YAML-aware escaping, newlines and structural characters in the input become live YAML syntax. Notably, the adjacent unsafe_routes field is already netip.Parse{Prefix,Addr}-validated at enroll.go:226-233, so the defect is an inconsistency in validation discipline across advanced fields.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/juev/nebula-mesh) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/juev/nebula-mesh).

CVSS VectorVendor: https://github.com/juev/nebula-mesh

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 23, 2026 - 20:22 NVD
8.7 (HIGH)

DescriptionCVE.org

internal/configgen/generator.go:86,108,119 interpolates the operator-supplied ListenHost and TunDevice fields raw into a text/template that produces the agent's config.yml. internal/web/advanced.go:20-35 accepts both with only strings.TrimSpace - no character or shape validation.

Exploit

An operator (or attacker with any operator key, given the cross-tenant CRUD advisory) sets adv_tun_device to:

nebula0
lighthouse:
  am_lighthouse: true
  hosts: ["10.0.0.1"]
#

The agent fetches the rendered config on its next signed poll. On config reload, it loads the injected YAML keys: the host self-promotes to lighthouse, attracts mesh traffic, or sets am_relay: true to be selected as a relay. The ListenHost field has the same shape.

Affected

All released versions prior to v0.3.2.

Threat model

  • Today: operator can compromise their own host's config (trivially allowed if they own the host, but they can also set lighthouse/relay flags that the operator-create form does NOT expose - privilege uplift within their own tenant).
  • Combined with the critical /api/v1 authz advisory: any operator key can mutate ANOTHER tenant's host overrides and inject YAML there.
  • Post-fix of the authz advisory: still relevant - the agent unconditionally trusts whatever config the server hands it, so any future operator-impersonation bug re-amplifies this.

Suggested fix

Two options, either acceptable:

  1. Input validation in parseAdvancedFromForm (internal/web/advanced.go):
  • ListenHost: regex ^[A-Za-z0-9.:\[\]_-]+$ (IPv4/IPv6/hostname)
  • TunDevice: regex ^[A-Za-z0-9_-]{1,15}$ (Linux IFNAMSIZ caps at 15)

Reject invalid input with a form-level error; do not write to the host row.

  1. Safer marshalling: switch configgen/generator.go to marshal a typed Go struct via gopkg.in/yaml.v3 (which escapes correctly) instead of text/template string-concat. Larger change, but eliminates this entire injection class.

Option 2 is preferable long-term. Option 1 is the quick fix.

The unsafe_routes advanced field is already netip.Parse{Prefix,Addr}-validated at enroll.go:226-233 - apply the same validation discipline to the other advanced fields.

Executive ViewAI

Why It Matters

nebula-mesh versions prior to v0.3.2 contain a YAML injection vulnerability that allows operators with existing access to elevate host privileges and intercept network traffic across the entire overlay infrastructure, with publicly available exploit code accelerating exploitation risk. A compromised or malicious operator could redirect and surveil all communications flowing through managed networks, creating significant risk for organizations relying on nebula-mesh for network isolation. Immediate patching is critical to prevent network-layer compromise and unauthorized traffic interception.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy