Original description
Webmin through 2.670 contains a weak random password generation vulnerability in generate_random_password() that allows attackers to predict generated account passwords because seed_random() effectively seeds Perl rand() with only time XOR process ID. When the non-default random_password option is enabled and administrators keep the pre-filled password in edit_user.cgi, attackers can enumerate time and PID seeds to recover passwords and authenticate as new accounts.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
- github.com/webmin/webmin
- github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736
- github.com/webmin/webmin/blob/2.670/useradmin/user-lib.pl#L2861
- github.com/webmin/webmin/issues/2941
- doi.org/10.5281/zenodo.24396540
- www.vulncheck.com/advisories/webmin-through-2.670-predictable-password-generation-in-users
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.