Description
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.
Published: 2026-08-11
Score: 9.9 Critical
EPSS: 2.1% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An OS command injection flaw in wg-easy 15.3.0 allows an attacker with the clients.create permission to inject newline‑delimited WireGuard PostUp directives into the client name field. The name is written directly into the WireGuard configuration file without neutralizing newline characters, so injectable directives are executed by wg-quick with root privileges, giving the attacker arbitrary root command execution on the host system. The weakness corresponds to CWE-78, an input validation flaw that leads to command execution.

Affected Systems

The vulnerability is confined to wg‑easy version 15.3.0. Any installation of that exact release where users possess the clients.create privilege is at risk. Earlier or later releases are not affected according to the advisory. No other vendors or products are impacted.

Risk and Exploitability

The CVSS score of 9.9 classifies the flaw as critical, and the EPSS score of 2% suggests a non‑zero but low probability of exploitation. The flaw is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is through the client‑creation API or web interface exposed by wg‑easy, which requires the attacker to compromise a user with clients.create rights. Once this privilege is obtained, the attacker can inject a newline in the client name and gain full root code execution on the host. The overall risk is high, driven by the severe impact and the need for administrative permission, which may be available through credential compromise or other vulnerabilities.

Generated by OpenCVE AI on August 13, 2026 at 03:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an updated version of wg‑easy that removes the newline injection flaw.
  • Limit the clients.create permission to trusted administrators or disable it entirely when it is not required for operations.
  • Implement server‑side input validation to reject or strip newline characters from the client name field.

Generated by OpenCVE AI on August 13, 2026 at 03:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Tue, 11 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Wg-easy
Wg-easy wg-easy
Vendors & Products Wg-easy
Wg-easy wg-easy

Tue, 11 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Description 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.
Title wg-easy wg-easy - OS Command Injection
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-11T12:12:36.276Z

Reserved: 2026-08-10T10:33:03.258Z

Link: CVE-2026-72603

cve-icon Vulnrichment

Updated: 2026-08-11T12:12:32.626Z

cve-icon NVD

Status : Deferred

Published: 2026-08-11T12:17:43.383

Modified: 2026-08-28T18:51:39.823

Link: CVE-2026-72603

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T03:30:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')