CVE-2026-42210
Webmin vulnerability analysis and mitigation

Overview

CVE-2026-42210 is a two-factor authentication (2FA) bypass vulnerability in Webmin, a web-based system administration tool for Unix-like servers. Affecting all versions prior to 2.640, the flaw allows an attacker who already possesses a valid username and password to bypass the TOTP-based 2FA requirement by authenticating via HTTP Basic authentication instead of the standard login flow. The vulnerability was published on July 20, 2026, and assigned a CVSS v4.0 base score of 5.3 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is improper authentication (CWE-287): Webmin's RPC/Basic authentication code path did not enforce the 2FA requirement that is applied during the standard interactive login. When a user account has a twofactor_provider configured, the standard login flow prompts for a TOTP code, but the HTTP Basic authentication handler in miniserv.pl previously validated only the username and password, granting access without checking for or requiring the second factor. The fix (commit da18a16) adds an explicit check in the Basic auth handler: if the validated user has a twofactor_provider set, the authentication is rejected with an X-Webmin-Auth-Error: twofactor-required response header and a descriptive error message (GitHub Commit, GitHub Advisory). Exploitation requires network access to the Webmin interface and prior knowledge of valid credentials, but no interaction from the target user.

Impact

Successful exploitation allows an attacker with stolen or guessed credentials to fully bypass the 2FA control and gain authenticated access to the Webmin administrative interface, effectively rendering the second factor useless. Since Webmin provides broad Unix server administration capabilities — including file management, user administration, and service control — unauthorized access can lead to full server compromise, privilege escalation, and lateral movement within the environment. The integrity impact is the primary concern, as an attacker can modify system configurations, create backdoor accounts, or deploy web shells (GitHub Advisory, VPNCentral).

Exploitability

No public proof-of-concept exploit code or active in-the-wild exploitation has been reported as of the available data. The NVD SSVC assessment classifies exploitation as "none" and the vulnerability as not automatable, reflecting the requirement for valid credentials as a precondition (Feedly). The EPSS score is approximately 0.0042 (0.42%), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Exploitation steps

  1. Reconnaissance: Identify internet-facing Webmin instances running versions prior to 2.640 using tools such as Shodan (query: product:"Webmin") or Censys.
  2. Credential acquisition: Obtain valid Webmin credentials for an account that has 2FA enabled, through phishing, credential stuffing, or prior data breach.
  3. Craft Basic authentication request: Instead of using the standard Webmin web login form (which enforces TOTP), send an HTTP request directly to the Webmin RPC or API endpoint using HTTP Basic authentication. For example:
    curl -u username:password https://<webmin-host>:10000/
  4. Bypass 2FA: Because the Basic auth handler in vulnerable versions does not check for a configured twofactor_provider, the server authenticates the request using only the username and password, granting full administrative access without prompting for a TOTP code.
  5. Achieve administrative access: Use the authenticated session to perform administrative actions — such as creating new user accounts, modifying system files, or executing commands — with the privileges of the Webmin user (GitHub Advisory, GitHub Commit).

Indicators of compromise

  • Network: HTTP requests to Webmin (default port 10000) using Basic authentication (Authorization: Basic ... header) for accounts that are expected to use 2FA; absence of TOTP challenge/response in the authentication flow.
  • Logs: Webmin access logs showing successful authentication events via Basic auth for 2FA-enabled accounts; syslog entries (post-patch) with messages such as Login as <user> from <host> rejected because two-factor authentication is enabled.
  • Logs: Webmin debug logs (/var/webmin/miniserv.log) containing handle_request: doing basic auth check followed by successful access for accounts with twofactor_provider configured.
  • File System: Unexpected new Webmin user accounts created, or modifications to /etc/webmin/miniserv.users or /etc/webmin/*.acl files.
  • Process: Unusual commands or scripts executed under the Webmin service account shortly after a Basic auth login event.

Mitigation and workarounds

Upgrade Webmin to version 2.640 or later, which includes the fix that enforces 2FA checks during HTTP Basic authentication (GitHub Advisory). For administrators unable to upgrade immediately, the official workaround is to manually apply the patch from commit da18a16c84ae5c0b78cad79609cb0efb174000ec to miniserv.pl (GitHub Commit). As an additional defensive measure, restrict network access to the Webmin port (default 10000) using firewall rules to limit exposure to trusted IP ranges only.

Community reactions

Coverage of this vulnerability appeared across several security news outlets, including Heise, CyberPress, CyberSecurityNews, and The Hacker News weekly recap, which highlighted the 2FA bypass alongside a related stored XSS vulnerability in Webmin (Heise, CyberSecurityNews, The Hacker News). VPNCentral noted that Webmin 2.641 addressed both the 2FA bypass and user impersonation issues (VPNCentral). Community reaction focused on the risk to administrators who rely on 2FA as a compensating control for exposed Webmin instances.

Additional resources


SourceThis report was generated using AI

Related Webmin vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49103CRITICAL9.4
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesMay 27, 2026
CVE-2026-56020CRITICAL9.2
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-56022MEDIUM6.9
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-56021MEDIUM6.9
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-42210MEDIUM5.3
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management