CVE-2026-134636Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()
Webmin through 2.670 contains a weak randomness vulnerability that allows attackers to predict TOTP two-factor secrets generated by generate_base32_secret() using a time and PID seeded rand(). Attackers who know a user's password and estimate enrollment time can enumerate candidate seeds, reproduce the secret, and bypass the second authentication factor.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- webmin: affected: up to 2.670
References
- https://github.com/webmin/webmin
- https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206
- https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736
- https://github.com/webmin/webmin/issues/2941
- https://doi.org/10.5281/zenodo.24396540
- https://www.vulncheck.com/advisories/webmin-through-2.670-predictable-totp-secret-generation-via-generate-base32-secret
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.