9.9critical
wg-easy wg-easy - OS Command Injection
- Severity
- 9.9critical CVSS:3.1 by TuranSec
- Exploit likelihood
- 2.13% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| wg-easy wg-easy | up to 15.3.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de inyección de comandos del sistema operativo en wg-easy 15.3.0 permite a los usuarios con el permiso clients.create ejecutar comandos arbitrarios como root inyectando directivas WireGuard PostUp delimitadas por saltos de línea en el campo de nombre del cliente. El nombre del cliente se escribe en el archivo de configuración de WireGuard sin neutralizar los caracteres de salto de línea, lo que permite la inyección de directivas arbitrarias que son ejecutadas por wg-quick con privilegios de root. Un atacante con permiso clients.create logra la ejecución de código como root en el host.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72603 changed 2026-08-11 | CVE Terms of Use |
| NVD | CVE-2026-72603 changed 2026-10-24 | Public domain |