CVE-2026-134643 in Webmin
Summary
by MITRE • 11/25/2026
Webmin through 2.670 contains an authentication bypass vulnerability in password_change.cgi that allows unauthenticated attackers to change passwords for accounts with empty stored hashes. When passwd_mode is 2, attackers can POST user, old, new1 and new2 with any old value to set a known password and gain access.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The identified vulnerability resides within the Webmin administrative interface, specifically affecting versions up through 2.670 in the password_change.cgi module. This flaw represents a critical authentication bypass that allows unauthenticated actors to manipulate user credentials under specific conditions. The core of the issue lies in how the application validates the old password during the change process when the passwd_mode parameter is set to two. In this operational mode, the system fails to strictly enforce the requirement for a valid existing hash or correct previous credential before accepting new values. Consequently, an attacker can submit a POST request containing the target username along with arbitrary values for the old password field and desired new passwords without possessing any prior knowledge of the current account credentials.
This technical flaw effectively neutralizes the authentication barrier for accounts that utilize empty stored hashes or where the validation logic is bypassed due to the specific mode configuration. By exploiting this condition, an attacker can set a known password for these targeted accounts, thereby gaining unauthorized access to the administrative interface. The ability to arbitrarily change passwords transforms what might be considered a low-severity issue into a critical compromise of system integrity and availability. Once access is gained through this method, the attacker assumes full control over the compromised account, which typically possesses elevated privileges within the Webmin environment.
The operational impact of this vulnerability extends beyond simple unauthorized login. An authenticated adversary with administrative capabilities can modify system configurations, install malicious modules, execute arbitrary commands via integrated tools, and exfiltrate sensitive data stored on the managed server. This significantly expands the attack surface for lateral movement within a network if Webmin is used to manage multiple systems. The ease of exploitation means that automated scanning tools could rapidly identify vulnerable instances and propagate attacks without requiring complex interaction or user engagement, making this a high-risk vector for widespread compromise in environments where default configurations are not strictly audited.
From the perspective of industry standards, this vulnerability aligns with CWE-287, which describes Improper Authentication, as the system fails to correctly verify identity before granting access or modifying critical security attributes. It also relates closely to CWE-640, Weak Password Recovery Mechanism for Forgotten Password, although in this case, it is an active bypass rather than a recovery feature abuse. In terms of offensive cyber operations mapping, this exploit technique corresponds to the MITRE ATT&CK tactic of Initial Access and specifically aligns with techniques involving Valid Accounts or Exploitation for Credential Access. The attacker leverages a flaw in the authentication logic to establish persistence through credential manipulation, facilitating subsequent lateral movement and privilege escalation phases within the target infrastructure.
Mitigation strategies must prioritize immediate patching to the latest stable version of Webmin where this validation logic has been corrected. Administrators should verify that their instances are not running vulnerable versions by checking the application header or configuration files. In environments where upgrading is temporarily delayed, network-level controls such as firewalls and intrusion detection systems should be configured to restrict access to the password_change.cgi endpoint exclusively from trusted IP addresses. Additionally, enforcing strong password policies and ensuring that no accounts have empty stored hashes can reduce the attack surface. Regular auditing of user accounts for unexpected changes in credentials or permissions is also recommended to detect any potential exploitation attempts early.