Skip to main content

wg-easy EUVDEUVD-2026-56042

| CVE-2026-72603 CRITICAL
OS Command Injection (CWE-78)
2026-08-11 TuranSec GHSA-g5jq-gh88-3gmw
9.9
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to wg-easy UI with clients.create
  2. Delivery
    Create client with newline-injected PostUp directive
  3. Exploit
    Directive written into WireGuard config unescaped
  4. Execution
    wg-quick applies interface as root
  5. Persist
    PostUp command executes
  6. Impact
    Root code execution on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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 wg-easy user holding the clients.create permission (PR:L) and network reachability to the management web interface (AV:N). The concrete trigger is the client name field: the attacker must supply a name containing a newline character followed by a valid WireGuard directive (e.g. PostUp), and the injected command executes only when wg-quick brings the interface up as root. Limiting factors: the attacker cannot be fully unauthenticated (a valid account with the specific clients.create grant is mandatory), exploitation depends on wg-quick running with root privileges (the default for interface management), and instances that tightly restrict the clients.create permission or isolate the UI substantially reduce exposure. This is not exploitable against a properly locked-down single-admin deployment by an outside anonymous user.

Impact

Signals are largely consistent and point to genuine high priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 9.9) indicates remote, low-complexity, low-privilege exploitation with a scope change to root - matching the description exactly, since PR:L corresponds to an authenticated clients.create user pivoting from the app to the host OS. No EPSS score, KEV entry, or POC was provided, so exploitation is currently theoretical from public data: treat as 'no public exploit identified at time of analysis' rather than active exploitation. The main mitigating factor absent from raw CVSS is that an attacker must already hold a valid account with the clients.create permission, so real-world risk concentrates on multi-user or internet-exposed deployments; a single-admin, network-isolated instance is lower urgency. Given the trivial exploitation mechanics once that permission is held and root impact, this should be prioritized over many nominally-critical bugs that need chained conditions.

Exploit ScenarioDerived

An attacker who has (or phishes/obtains) a wg-easy account with the clients.create permission opens the web UI and creates a new client whose name contains a newline followed by a directive such as 'PostUp = <reverse shell or command>'. When that WireGuard interface configuration is applied by wg-quick, the injected directive runs as root, giving the attacker full command execution on the host. No public POC is referenced, but the technique is straightforward and needs no user interaction beyond the attacker's own actions.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 2.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 11, 2026

Root-level OS command injection in wg-easy 15.3.0 lets a low-privileged web user holding the clients.create permission escalate to full host compromise. Because the client name is written verbatim into the WireGuard config, an attacker embeds newline-separated PostUp directives that wg-quick later executes as root. No public exploit identified at time of analysis, but the CVSS 9.9 (S:C, full C/I/A) and simple, GUI-driven injection make this a high-priority issue for any exposed wg-easy instance.

RemediationAI

No vendor-released patch version is identified at time of analysis, so upgrade to a fixed release as soon as one is published on the wg-easy repository (https://github.com/wg-easy/wg-easy) - monitor its releases/security advisories, since EUVD-2026-56042 marks everything up to 15.3.0 as vulnerable. As compensating controls until a patch exists: restrict who holds the clients.create permission to fully trusted administrators only (the injection is only reachable by users with that grant), and audit existing client entries for names containing newlines or 'PostUp'/'PostDown' strings. Place the wg-easy management interface behind a VPN or IP allow-list rather than exposing it to the internet, and where feasible run wg-quick/wg-easy with reduced privileges or within a hardened container so an injected PostUp does not directly yield host root - noting that dropping privileges may break WireGuard interface management and require additional capability tuning. Validate/normalize client names on input as a stopgap if you maintain a local fork.

Affected VersionsENISA

wg-easy 0 ≤15.3.0

Affected Packages

euvd wg_easy no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

wg-easy is a self-hosted web UI and management wrapper around WireGuard, generating and applying wg-quick configuration files. WireGuard config files support lifecycle hook directives such as PostUp/PostDown that run arbitrary shell commands when the interface is brought up. The affected component is cpe:2.3:a:wg-easy:wg-easy at version 15.3.0 (EUVD lists all versions up to and including 15.3.0). The root cause is CWE-78 (OS Command Injection): the client name field is serialized into the [Interface]/[Peer] config context without neutralizing newline characters, so a name containing a line break followed by 'PostUp = <cmd>' becomes a first-class config directive. wg-quick is typically run as root to manipulate network interfaces, so any injected PostUp command inherits root privileges.

Know when Wg Easy gets its next vulnerability

  • 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 (TuranSec) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

Authenticated clients.create user (PR:L) exploits a network-facing UI (AV:N/AC:L) and escapes the app to run commands as root on the host, a scope change (S:C) with full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

An OS command injection vulnerability in wg-easy 15.3.0 allows users with the clients.create permission to execute arbitrary commands as root by injecting newline-delimited WireGuard PostUp directives into the client name field. The client name is written to the WireGuard configuration file without neutralizing newline characters, allowing injection of arbitrary directives that are executed by wg-quick with root privileges. An attacker with clients.create permission achieves root code execution on the host.

Executive ViewAI

Why It Matters

Organizations using wg-easy 15.3.0 face complete host compromise through its web management interface, where authenticated users can escalate to root system control. While no public exploit has been identified at time of analysis, the straightforward exploitation path and CVSS 9.9 severity create urgent risk for any internet-exposed instance. All downstream VPN clients, infrastructure, and connected systems are vulnerable to total takeover.

Business Impact: Severe
Compensating Controls

Network isolation is essential: restrict wg-easy to internal or VPN-only access, blocking untrusted users. Layer Web Application Firewall or input validation rules to reject malicious client name patterns. Isolate affected systems from critical infrastructure using network segmentation. Initiate emergency migration to a patched alternative VPN management solution.

Threat Intelligence Overview

EPSS Score
2.1%
Top 20% exploitable
Prevalence
Medium
popular self-hosted WireGuard web UI, common in homelab/SMB deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 CRITICAL
CISA KEV No
Public POC No
EPSS 2.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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

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