CVE-2026-134634 in Webmin
Summary
by MITRE • 11/25/2026
Webmin through 2.670 contains an improper certificate validation vulnerability in servers/link.cgi that accepts self-signed certificates for linked servers even when certificate checking is enabled. Man-in-the-middle attackers presenting a self-signed certificate with the correct hostname can capture stored HTTP Basic credentials for the remote Webmin and inject HTML into the local Webmin origin.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in Webmin versions up to 2.670 represents a critical failure in transport layer security validation within the servers/link.cgi module. This component is responsible for managing connections between different Webmin instances, allowing administrators to control remote systems from a central interface. The core technical flaw lies in the improper certificate validation logic when establishing secure links. Specifically, the application fails to enforce strict verification of X.509 certificates even when the configuration explicitly mandates that certificate checking be enabled. Instead of validating the certificate chain against trusted root authorities or verifying specific cryptographic signatures, the system accepts self-signed certificates provided they match the expected hostname string. This deviation from standard TLS/SSL best practices creates a significant trust boundary violation, effectively nullifying the security guarantees intended by enabling HTTPS for administrative communications.
From an operational perspective, this flaw allows man-in-the-middle attackers to intercept and manipulate traffic between Webmin instances without detection. By presenting a self-signed certificate that matches the target hostname, an attacker can position themselves as a trusted intermediary in the communication channel. This capability leads to two primary adverse outcomes: credential theft and cross-site scripting via injection. First, because the connection is established under false security assurances, stored HTTP Basic credentials used for authentication between Webmin instances are transmitted in cleartext or decrypted by the attacker during the handshake process. These credentials often possess high privileges within the remote system, granting the attacker unauthorized administrative access. Second, the compromised channel allows the injection of malicious HTML content into the local Webmin origin. This can facilitate session hijacking, phishing attacks against administrators viewing the interface, or further exploitation through reflected cross-site scripting vectors embedded in the injected payloads.
This vulnerability aligns with CWE-295 Improper Certificate Validation and CWE-319 Cleartext Transmission of Sensitive Information within the Common Weakness Enumeration framework. The failure to validate certificates properly undermines the integrity and confidentiality guarantees provided by TLS, which is fundamental for secure remote administration tools. In terms of offensive security tactics, this scenario maps directly to MITRE ATT&CK technique T1078 Valid Accounts, as stolen credentials are used to maintain persistence or escalate privileges, and T1557 Adversary-in-the-Middle, where the attacker intercepts communications between two trusted parties. The ability to inject HTML also touches upon client-side attack vectors that compromise user trust in the administrative interface.
Mitigation strategies must focus on enforcing strict certificate validation policies immediately. Administrators should upgrade Webmin to version 2.671 or later, where this logic has been corrected to properly validate certificates against trusted authorities rather than relying solely on hostname matching for self-signed certificates. In environments where upgrading is not immediately feasible, it is critical to disable the linked server functionality if not strictly required, thereby removing the attack surface associated with servers/link.cgi. Additionally, organizations should ensure that all Webmin instances use certificates issued by a recognized internal or public Certificate Authority rather than relying on self-signed certificates for inter-instance communication. Regular audits of TLS configurations and monitoring for anomalous authentication patterns can help detect potential exploitation attempts before significant damage occurs.