CVE-2026-134636: Webmin 2FA Secret Flaw Scores 4.8

A weak random-number generator in Webmin lets an attacker predict the secret behind a user's two-factor authentication code and bypass the second factor entirely. Tracked as CVE-2026-134636, the flaw affects Webmin versions through 2.670 and carries a CVSS score of 4.8 out of 10. It was published on Tuesday, 25 November 2026, as part of a VulnCheck security audit of Webmin 2.670.
The flaw sits in generate_base32_secret(), the function that creates the shared secret when a user enrols in time-based one-time password (TOTP) two-factor authentication. Instead of drawing from a cryptographically secure source of randomness, it seeds Perl's rand() function with the current time and the process ID. Both values are predictable: the time is roughly when the user enrolled, and process IDs on a server fall in a small, guessable range.
What the flaw allows
The vulnerability is a use of a cryptographically weak pseudo-random number generator, classified as CWE-338. An attacker who already knows a user's password, and who can estimate roughly when that user enrolled in two-factor authentication, can enumerate the candidate seeds, regenerate the same secret, and produce valid one-time codes. The second factor then adds nothing: the attacker logs in with the password and a code they computed themselves.
The CVSS version 3.1 score of 4.8 rates the flaw Medium, and the version 4.0 score is 6.3. The score is modest because the attack has real prerequisites. It needs the victim's password first, it needs a good estimate of the enrolment time, and it needs the attacker to work through the seed space. None of those is a high bar against a targeted account, but the flaw does not hand an attacker access on its own, and it needs no user interaction and no privileges of its own.
Why predictable secrets fail quietly
Two-factor authentication only works if the shared secret is genuinely secret, and a secret generated from a guessable seed is not. Nothing in the login flow reveals the problem: codes still arrive, still work, and still look random. The weakness is invisible until someone does the arithmetic, which is why it survived in the code until an audit examined the generator itself.
This flaw is different from the Webmin flaws already filed today. CVE-2026-134438 concerns upgrade packages fetched over plaintext HTTP, and CVE-2026-134646 concerns SMTP credentials sent without encryption. CVE-2026-134636 sits in the two-factor authentication code and undermines a login defence rather than leaking a credential or running code. All three came out of the same 25 November audit batch, but they are separate flaws in separate modules.
What to do now
No fixed release is named in the CVE record, so administrators should check Webmin's own advisory and the disclosure thread, GitHub issue 2941, for the fix when it lands. Until then, the practical steps are to make sure account passwords are strong and unique, to watch login logs for sign-ins from unfamiliar addresses, and to re-enrol two-factor authentication once a fixed release is installed, so that the secret is generated by the corrected code.
Two-factor authentication should not be switched off in the meantime. Even a weakened second factor still forces an attacker to do extra work, and removing it would leave the password as the only defence. No exploitation has been reported in the sources checked.
FAQ
What is CVE-2026-134636? It is a weak-randomness flaw in Webmin's TOTP secret generation through version 2.670, scored 4.8 out of 10 under CVSS 3.1, that lets an attacker who knows a password predict the two-factor secret and bypass the second factor.
Am I affected? If your Webmin installation runs version 2.670 or earlier and users have enrolled in TOTP two-factor authentication, yes.
Is there a fix? No fixed release is named in the CVE record yet. Re-enrol two-factor authentication after the vendor publishes a fix.
Is it being exploited? No exploitation has been reported in the sources checked.
[Source: NVD record for CVE-2026-134636 via OpenCVE](https://opencve.de.a9sapp.eu/cve/CVE-2026-134636) | [Source: CVE record for CVE-2026-134636 via Redsauce](https://www.redsauce.net/en/cves/CVE-2026-134636)