Security
This page lists security problems found in Webmin and Usermin, versions affected and recommended solutions.
PLEASE DO NOT report bugs for privilege escalation by Webmin users that have not been properly locked down by the root user! Yes we know that many modules if granted to an un-trusted non-safe user can be used to gain full access to the system. This is why Webmin’s fine-grained ACLs exist.
PLEASE DO use your own words when submitting bug reports. AI-generated vulnerability reports are frequently far too verbose and hard to read.
Webmin prior to 2.670 #
Privilege escalation via Custom Command parameters #
An untrusted Webmin user with access to the Custom Commands module and allowed to run commands with paramaters can exploit the lack of input sanitization to execute arbitrary commands as root. Commands without parameters are not vulnerable to this bug. Thanks to BoGeun Jang for finding and reporting this bug.
An untrusted Webmin user with access to the Custom Commands module and allowed to run commands with paramaters can exploit the lack of input sanitization to execute arbitrary commands as root. Commands without parameters are not vulnerable to this bug.
Thanks to BoGeun Jang for finding and reporting this bug.
Thanks to BoGeun Jang for finding and reporting this bug.
File Manager results may include restricted directories #
A Webmin user who is limited to two or more directories may see the listing of other directories when using the function. Actual file contents and changes are still restricted though. Similarly, the file chooser may allow listing of directories with the same prefix as an allowed directory. Thanks to Wenhao Wu, Southeast University for finding these bugs.
A Webmin user who is limited to two or more directories may see the listing of other directories when using the function. Actual file contents and changes are still restricted though. Similarly, the file chooser may allow listing of directories with the same prefix as an allowed directory.
Thanks to Wenhao Wu, Southeast University for finding these bugs.
Thanks to Wenhao Wu, Southeast University for finding these bugs.
Webmin prior to 2.653 #
Unprivileged users can perform privileged actions in multiple modules #
Webmin users with limited access to the DHCPd, MySQL, PostgreSQL, Nginx, PostgreSQL Samba or Squid modules may be able to restart servers or edit configs even if denied by the fine-grained ACL. Thanks to Team Atlanta , OSTIF and Shielder for finding and reporting these issues.
Webmin users with limited access to the DHCPd, MySQL, PostgreSQL, Nginx, PostgreSQL Samba or Squid modules may be able to restart servers or edit configs even if denied by the fine-grained ACL.
Thanks to Team Atlanta , OSTIF and Shielder for finding and reporting these issues.
Thanks to Team Atlanta , OSTIF and Shielder for finding and reporting these issues.
Webmin prior to 2.652 #
SSRF exploit in Upload and Download and File Manager modules [CVE-2026-102337] #
Webmin systems on which un-trusted users have access to modules that can download files from other URLs could make use of this download feature to access sites which are not accessible from the user’s system. This could potentially grant access to other servers on an intranet or Cloud provider IAM credential URLs, as long as they are not protected by any form of authentication.
Webmin systems on which un-trusted users have access to modules that can download files from other URLs could make use of this download feature to access sites which are not accessible from the user’s system. This could potentially grant access to other servers on an intranet or Cloud provider IAM credential URLs, as long as they are not protected by any form of authentication.
Admins who have created Webmin users with limited access should consider locking down the URLs they can download from at Webmin -> Webmin Users -> username -> Permissions for all modules -> URL download destinations. The release of Virtualmin will apply this restriction to all domain owners and extra admins. Thanks to zuesdevil for reporting this issue.
Admins who have created Webmin users with limited access should consider locking down the URLs they can download from at Webmin -> Webmin Users -> username -> Permissions for all modules -> URL download destinations. The release of Virtualmin will apply this restriction to all domain owners and extra admins.
Thanks to zuesdevil for reporting this issue.
Thanks to zuesdevil for reporting this issue.
Webmin prior to 2.650 [CVE-2026-49243] #
Reflected XSS attack on Webmin #
Webmin users who click on a malicious link to their server are vulnerable to this XSS vulnerability that could be used to execute attacker-controlled commands. Thanks to Emiliano Versini for finding and reporting this issue.
Webmin users who click on a malicious link to their server are vulnerable to this XSS vulnerability that could be used to execute attacker-controlled commands.
Thanks to Emiliano Versini for finding and reporting this issue.
Thanks to Emiliano Versini for finding and reporting this issue.
Webmin prior to 2.641 #
Stored XSS in System and Server Status module [CVE-2026-22678] #
An untrusted Webmin user with permission to create notification email templates in the System and Server Status could exploit the root user when the template is viewed. Thanks to Wade Sparks for reporting this issue.
An untrusted Webmin user with permission to create notification email templates in the System and Server Status could exploit the root user when the template is viewed.
Thanks to Wade Sparks for reporting this issue.
Thanks to Wade Sparks for reporting this issue.
Webmin prior to 2.640 #
Privilege escalation using Help feature #
Untrusted Webmin users can use the built-in help pages to execute commands with root privileges. This is possible regardless of which modules the Webmin user has access to. Thanks to Jeremy Brown for reporting this.
Untrusted Webmin users can use the built-in help pages to execute commands with root privileges. This is possible regardless of which modules the Webmin user has access to.
Thanks to Jeremy Brown for reporting this.
Thanks to Jeremy Brown for reporting this.
XSS attach via SVG email [CVE-2026-49102] #
Opening an untrusted malicious email with an SVG attachment can be used to trigger an XSS attach in the Read User Mail module. Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
Opening an untrusted malicious email with an SVG attachment can be used to trigger an XSS attach in the Read User Mail module.
Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
Detach email attachment file overwrite [CVE-2026-49103] #
Webmin before 2.640 does not safely construct a filename for saving of an attachment in the Read User Mail module. Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
Webmin before 2.640 does not safely construct a filename for saving of an attachment in the Read User Mail module.
Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
Thanks to Andrea Carlo Maria Dattola, Marco Ventura and Massimiliano Brolli of TIM Security Red Team Research - TIM S.p.A
2FA bypass using basic authentication [CVE-2026-42210, CVE-2026-56022] #
Accounts with two-factor authentication enabled can bypass the 2FA requirement by using Basic HTTP authentication, instead of Webmin’s regular cookie-based session login. The username and password must still be correctly provided though.
Webmin prior to 2.600 #
Privilige escalation using Squid module [CVE-2025-67738] #
If an untrusted Webmin user is granted access to the Squid module and the Squid cache manager is installed, the user can take advantage of lack of parameter escaping to execute commands as root. Thanks to Filippo Decortes for reporting this.
If an untrusted Webmin user is granted access to the Squid module and the Squid cache manager is installed, the user can take advantage of lack of parameter escaping to execute commands as root.
Thanks to Filippo Decortes for reporting this.
Thanks to Filippo Decortes for reporting this.
Webmin 2.510 and below [October 9, 2025] #
Host header injection vulnerability in the password reset feature [CVE-2025-61541] #
If the password reset feature is enabled, an attacker can use a specially crafted host header to cause the password reset email to contain a link to a malicious site. Thanks to Nyein Chan Aung and Mg Demon for reporting this.
If the password reset feature is enabled, an attacker can use a specially crafted host header to cause the password reset email to contain a link to a malicious site.
Thanks to Nyein Chan Aung and Mg Demon for reporting this.
Thanks to Nyein Chan Aung and Mg Demon for reporting this.
Webmin 2.202 and below [February 26, 2025] #
SSL certificates from clients may be trusted unexpectedly [CVE-2026-56020] #
If Webmin is configured to trust remote IP addresses provided by a proxy and you have users authenticating using client SSL certificates, a browser connecting directly (not via the proxy) can provide a forged header to fake the client certificate.
If Webmin is configured to trust remote IP addresses provided by a proxy and you have users authenticating using client SSL certificates, a browser connecting directly (not via the proxy) can provide a forged header to fake the client certificate.
Upgrade to Webmin 2.301 or later, and if there is any chance of direct requests by clients disable this at Webmin ⇾ Webmin Configuration ⇾ IP Access Control page using Trust level for proxy headers option. Thanks to Keigo YAMAZAKI from LAC Co., Ltd. for reporting this.
Upgrade to Webmin 2.301 or later, and if there is any chance of direct requests by clients disable this at Webmin ⇾ Webmin Configuration ⇾ IP Access Control page using Trust level for proxy headers option.
Thanks to Keigo YAMAZAKI from LAC Co., Ltd. for reporting this.
Thanks to Keigo YAMAZAKI from LAC Co., Ltd. for reporting this.
Webmin 2.105 and below [April 15, 2024] #
Privilege escalation by non-root users [CVE-2024-12828] #
A less-privileged Webmin user can execute commands as root via a vulnerability in the shell autocomplete feature.
A less-privileged Webmin user can execute commands as root via a vulnerability in the shell autocomplete feature.
All Virtualmin admins and Webmin admins who have created additional accounts should upgrade to version 2.111 as soon as possible! Thanks to Trend Micro’s Zero Day Initiative for finding and reporting this issue.
All Virtualmin admins and Webmin admins who have created additional accounts should upgrade to version 2.111 as soon as possible!
Thanks to Trend Micro’s Zero Day Initiative for finding and reporting this issue.
Thanks to Trend Micro’s Zero Day Initiative for finding and reporting this issue.
Webmin 1.995 and Usermin 1.850 and below [June 30, 2022] #
XSS vulnerability in the HTTP Tunnel module #
If a less-privileged Webmin user is given permission to edit the configuration of the HTTP Tunnel module, he/she could use this to introduce a vulnerability that captures cookies belonging to other Webmin users that use the module. Thanks to BLACK MENACE and PYBRO for reporting this issue.
If a less-privileged Webmin user is given permission to edit the configuration of the HTTP Tunnel module, he/she could use this to introduce a vulnerability that captures cookies belonging to other Webmin users that use the module.
Thanks to BLACK MENACE and PYBRO for reporting this issue.
Thanks to BLACK MENACE and PYBRO for reporting this issue.
An HTML email crafted by an attacker could capture browser cookies when opened. Thanks to ly1g3 for reporting this bug.
An HTML email crafted by an attacker could capture browser cookies when opened.
Thanks to ly1g3 for reporting this bug.
Thanks to ly1g3 for reporting this bug.
Webmin 1.991 and below [April 18, 2022] #
Privilege escalation exploit [CVE-2022-30708] #
Less privileged Webmin users (excluding those created by Virtualmin and Cloudmin) can modify arbitrary files with root privileges, and so run commands as root. All systems with additional untrusted Webmin users should upgrade immediately. Thanks to esp0xdeadbeef and V1s3r1on for finding and reporting this issue!
Less privileged Webmin users (excluding those created by Virtualmin and Cloudmin) can modify arbitrary files with root privileges, and so run commands as root. All systems with additional untrusted Webmin users should upgrade immediately.
Thanks to esp0xdeadbeef and V1s3r1on for finding and reporting this issue!
Thanks to esp0xdeadbeef and V1s3r1on for finding and reporting this issue!
Webmin 1.984 and below [December 26, 2021] #
File Manager privilege exploit [CVE-2022-0824 and CVE-2022-0829] #
Less privileged Webmin users who do not have any File Manager module restrictions configured can access files with root privileges, if using the default Authentic theme. All systems with additional untrusted Webmin users should upgrade immediately. Note that Virtualmin systems are not effected by this bug, due to the way domain owner Webmin users are configured. Thanks to Faisal Fs ( faisalfs10x ) from NetbyteSEC for finding and reporting this issue!
Less privileged Webmin users who do not have any File Manager module restrictions configured can access files with root privileges, if using the default Authentic theme. All systems with additional untrusted Webmin users should upgrade immediately. Note that Virtualmin systems are not effected by this bug, due to the way domain owner Webmin users are configured.
Thanks to Faisal Fs ( faisalfs10x ) from NetbyteSEC for finding and reporting this issue!
Thanks to Faisal Fs ( faisalfs10x ) from NetbyteSEC for finding and reporting this issue!
Virtualmin Procmail wrapper version 1.0 #
Privilege escalation exploit #
Version 1.0 of the procmail-wrapper package installed with Virtualmin has a vulnerability that can be used by anyone with SSH access to gain root privileges. To prevent this, all Virtualmin users should upgrade to version 1.1 or later immediately.
Webmin 1.973 and below [March 7, 2021] #
XSS vulnerabilities if Webmin is installed using the setup.pl script [CVE-2021-31760, CVE-2021-31761 and CVE-2021-31762] #
If Webmin is installed using the non-recommended setup.pl script, checking for unknown referers is not enabled by default. This opens the system up to XSS and CSRF attacks using malicious links. Fortunately the standard rpm , deb , pkg and tar packages do not use this script and so are not vulnerable. If you did install using the setup.pl script, the vulnerability can be fixed by adding the line referers_none=1 to /etc/webmin/config file.
Thanks to Meshal ( Mesh3l_911 ) @Mesh3l_911 and Mohammed ( Z0ldyck ) @electronicbots for finding and reporting this issue!
Thanks to Meshal ( Mesh3l_911 ) @Mesh3l_911 and Mohammed ( Z0ldyck ) @electronicbots for finding and reporting this issue!
Webmin 1.941 and below [January 16, 2020] #
XSS vulnerability in the Command Shell module [CVE-2020-8820 and CVE-2020-8821] #
A user with privileges to create custom commands could exploit other users via unescaped HTML.
Thanks to Mauro Caseres for reporting this and the following issue.
Thanks to Mauro Caseres for reporting this and the following issue.
Webmin 1.941 and below [January 16, 2020] #
XSS vulnerability in the Read Mail module [CVE-2020-12670] #
Saving a malicious HTML attachment could trigger and XSS vulnerability.
Webmin 1.882 to 1.921 [July 6, 2019] #
Remote Command Execution [CVE-2019-15231] #
Webmin releases between these versions contain a vulnerability that allows remote command execution! Version 1.890 is vulnerable in a default install and should be upgraded immediately - other versions are only vulnerable if changing of expired passwords is enabled, which is not the case by default. Either way, upgrading to version 1.930 is strongly recommended. Alternately, if running versions 1.900 to 1.920, edit /etc/webmin/miniserv.conf , remove the passwd_mode= line, then run /etc/webmin/restart command. More details.. Webmin version 1.890 was released with a backdoor that could allow anyone with knowledge of it to execute commands as root. Versions 1.900 to 1.920 also contained a backdoor using similar code, but it was not exploitable in a default Webmin install. Only if the admin had enabled the feature at Webmin ⇾ Webmin Configuration ⇾ Authentication to allow changing of expired passwords could it be used by an attacker. Neither of these were accidental bugs - rather, the Webmin source code had been maliciously modified to add a non-obvious vulnerability. It appears that this happened as follows : At some time in April 2018, the Webmin development build server was exploited and a vulnerability added to the password_change.cgi script. Because the timestamp on the file was set back, it did not show up in any Git diffs. This was included in the Webmin 1.890 release. The vulnerable file was reverted to the checked-in version from GitHub, but sometime in July 2018 the file was modified again by the attacker. However, this time the exploit was added to code that is only executed if changing of expired passwords is enabled. This was included in the Webmin 1.900 release. On September 10th 2018, the vulnerable build server was decommissioned and replaced with a newly installed server running CentOS 7. However, the build directory containing the modified file was copied across from backups made on the original server. On August 17th 2019, we were informed that a 0-day exploit that made use of the vulnerability had been released. In response, the exploit code was removed and Webmin version 1.930 created and released to all users. In order to prevent similar attacks in future, we’re doing the following : Updating the build process to use only checked-in code from GitHub, rather than a local directory that is kept in sync. Rotated all passwords and keys accessible from the old build system. Auditing all GitHub commits over the past year to look for commits that may have introduced similar vulnerabilities.
Webmin releases between these versions contain a vulnerability that allows remote command execution! Version 1.890 is vulnerable in a default install and should be upgraded immediately - other versions are only vulnerable if changing of expired passwords is enabled, which is not the case by default.
Either way, upgrading to version 1.930 is strongly recommended. Alternately, if running versions 1.900 to 1.920, edit /etc/webmin/miniserv.conf , remove the passwd_mode= line, then run /etc/webmin/restart command. More details.. Webmin version 1.890 was released with a backdoor that could allow anyone with knowledge of it to execute commands as root. Versions 1.900 to 1.920 also contained a backdoor using similar code, but it was not exploitable in a default Webmin install. Only if the admin had enabled the feature at Webmin ⇾ Webmin Configuration ⇾ Authentication to allow changing of expired passwords could it be used by an attacker.
Neither of these were accidental bugs - rather, the Webmin source code had been maliciously modified to add a non-obvious vulnerability. It appears that this happened as follows :
At some time in April 2018, the Webmin development build server was exploited and a vulnerability added to the password_change.cgi script. Because the timestamp on the file was set back, it did not show up in any Git diffs. This was included in the Webmin 1.890 release.
The vulnerable file was reverted to the checked-in version from GitHub, but sometime in July 2018 the file was modified again by the attacker. However, this time the exploit was added to code that is only executed if changing of expired passwords is enabled. This was included in the Webmin 1.900 release.
On September 10th 2018, the vulnerable build server was decommissioned and replaced with a newly installed server running CentOS 7. However, the build directory containing the modified file was copied across from backups made on the original server.
On August 17th 2019, we were informed that a 0-day exploit that made use of the vulnerability had been released. In response, the exploit code was removed and Webmin version 1.930 created and released to all users.
In order to prevent similar attacks in future, we’re doing the following :
Updating the build process to use only checked-in code from GitHub, rather than a local directory that is kept in sync.
Rotated all passwords and keys accessible from the old build system.
Auditing all GitHub commits over the past year to look for commits that may have introduced similar vulnerabilities.
