CVE-2026-134640 in Webmin
Summary
by MITRE • 11/25/2026
Webmin through 2.670 contains an improper certificate validation vulnerability in imap_login in mailboxes/folders-lib.pl that skips certificate verification and hostname checks for IMAP SSL connections. Man-in-the-middle attackers can present any certificate to capture IMAP credentials sent by the System and Server Status IMAP monitor and spoof monitor results.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in Webmin versions up through 2.670 represents a critical failure in transport layer security implementation within the mail module's folder management library, specifically located in the imap_login function of the mailboxes/folders-lib.pl script. This flaw stems from an improper certificate validation mechanism that effectively disables essential cryptographic checks required for secure communication protocols. When establishing IMAP SSL connections to monitor system and server status via email accounts, the application fails to verify the authenticity of the remote server's X.509 certificate against a trusted Certificate Authority chain. Furthermore, it neglects to perform hostname verification, which is a mandatory step in TLS handshakes to ensure that the certificate presented by the peer actually corresponds to the intended destination host rather than an arbitrary or malicious entity.
From a technical perspective, this deficiency allows for classic man-in-the-middle attacks where an adversary positioned between the Webmin server and the IMAP mail server can intercept the connection without triggering security warnings or dropping the session. By presenting any self-signed or invalid certificate to the vulnerable client component, the attacker establishes an encrypted tunnel that appears legitimate to the application but is under their control. This capability enables the passive capture of plaintext credentials transmitted during the authentication phase of the IMAP protocol. Since Webmin uses these monitored accounts to display system status information, compromising this channel provides attackers with valid administrative or user credentials stored within the monitoring configuration, which can then be leveraged for further unauthorized access to email services or other systems sharing those same credentials.
The operational impact extends beyond simple credential theft due to the specific function of the affected module. The System and Server Status IMAP monitor relies on periodic checks against mail servers to report health metrics such as queue sizes or connection statuses. An attacker exploiting this vulnerability can not only steal login details but also spoof these monitoring results by injecting fake responses into the intercepted stream. This deception allows malicious actors to mask their activities, hide signs of compromise, or potentially trigger false alerts that distract security operations teams while they conduct deeper intrusions elsewhere in the network infrastructure. The combination of credential harvesting and data manipulation significantly elevates the severity of this flaw from a simple configuration error to an active exploitation vector for broader system compromise.
This vulnerability aligns with CWE-295, which describes Improper Certificate Validation, as well as CWE-319 regarding Cleartext Transmission of Credentials when considering the exposure risk during interception. In terms of offensive security frameworks, this flaw facilitates MITM attacks consistent with ATT&CK technique T1078, specifically relating to Valid Accounts and potentially T1557 for Adversary-in-the-Middle scenarios where traffic is intercepted between two communicating parties. To mitigate these risks, administrators must immediately upgrade Webmin to version 2.671 or later where the certificate validation logic has been corrected to enforce strict hostname verification and CA chain validation. Additionally, organizations should implement network-level controls such as TLS inspection policies that reject connections with invalid certificates at the firewall level, ensuring defense-in-depth even if application-layer checks are bypassed. Regular auditing of third-party module configurations is also recommended to identify similar oversights in other integrated services.