CVE-2026-134640: Webmin IMAP Flaw Scores 6.5

Webmin's mail monitor connects to IMAP servers without checking their certificates, so an attacker in the middle can impersonate the mail server and capture the login credentials. Tracked as CVE-2026-134640, the flaw affects Webmin versions through 2.670 and carries a CVSS score of 6.5 out of 10. It was published on Tuesday, 25 November 2026, as part of a VulnCheck security audit of Webmin 2.670, and the advisory credits researcher Armin Supuk.
The flaw sits in imap_login in mailboxes/folders-lib.pl, the function Webmin uses when its System and Server Status monitor checks an IMAP server over SSL. The function skips both certificate verification and hostname checks. That means it will accept any certificate, including one the attacker generated themselves, and proceed to send the IMAP username and password to whoever presented it.
What the flaw allows
The vulnerability is an improper certificate validation flaw, classified as CWE-295. A man-in-the-middle attacker can present any certificate to the monitor, capture the IMAP credentials it sends, and spoof the monitor's results, making a dead or compromised mail server look healthy. The attack works over the network, needs no privileges and no interaction from a victim, and the monitor itself supplies the credentials on its own schedule.
The CVSS version 3.1 score of 6.5 rates the flaw Medium, while the version 4.0 score of 8.3 rates it High, and VulnCheck's own advisory labels its severity high. Both versions agree the confidentiality impact is high, because the captured credentials are real mail-account logins, and both agree the attack is complex only in that the attacker must sit on the network path between the Webmin host and the mail server. Once there, nothing else stands in the way.
Why skipping the check defeats the encryption
Encrypting a connection is only half the job; the other half is confirming who is on the far end. A certificate check is what ties the encryption to the real mail server. Without it, the connection is still encrypted, but it is encrypted to the attacker, who reads the credentials and can pass the session on or answer in the server's place. The monitor's green status light then reports on a server that was never reached.
This flaw is different from the Webmin flaws already filed today. CVE-2026-134438 concerns upgrade packages fetched over plaintext HTTP, and CVE-2026-134646 concerns SMTP credentials sent without STARTTLS. CVE-2026-134640 is the IMAP counterpart in a different module: the connection is encrypted, but the identity of the server is never verified. All three came out of the same 25 November audit batch, but they are separate flaws with separate fixes.
What to do now
No fixed release is named in the CVE record, so administrators should check Webmin's own advisory and the disclosure thread, GitHub issue 2941, for the fix when it lands. Until then, the practical steps are to stop using the IMAP service monitor with real account credentials, and to rotate the IMAP password it used. Any service where that password was reused should be treated as exposed and rotated too.
Longer term, monitoring credentials should belong to a dedicated, low-privilege account, and monitor traffic should travel over a network path that cannot be intercepted. No exploitation has been reported in the sources checked.
FAQ
What is CVE-2026-134640? It is an improper certificate validation flaw in Webmin's IMAP login through version 2.670, scored 6.5 out of 10 under CVSS 3.1, that lets a man-in-the-middle attacker capture IMAP credentials.
Am I affected? If your Webmin installation runs version 2.670 or earlier and its System and Server Status IMAP monitor is configured with login credentials, yes.
Is there a fix? No fixed release is named in the CVE record yet. Disable the authenticated IMAP monitor and rotate its credentials until the vendor publishes a fix.
Is it being exploited? No exploitation has been reported in the sources checked.
[Source: NVD record for CVE-2026-134640 via OpenCVE](https://opencve.de.a9sapp.eu/cve/CVE-2026-134640) | [Source: VulnCheck advisory for CVE-2026-134640](https://www.vulncheck.com/advisories/webmin-through-2.670-missing-imap-certificate-validation-in-imap-login)