# CVE-2026-134636: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-11-25T03:21:00.385Z
- Modified: 2026-11-30T19:17:46.177Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- webmin webmin: up to 2.670

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/webmin/webmin> (product)
- <https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206> (technical-description)
- <https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736> (technical-description)
- <https://github.com/webmin/webmin/issues/2941> (issue-tracking)
- <https://doi.org/10.5281/zenodo.24396540> (technical-description)
- <https://www.vulncheck.com/advisories/webmin-through-2.670-predictable-totp-secret-generation-via-generate-base32-secret> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-134636](https://www.cve.org/CVERecord?id=CVE-2026-134636), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-134636](https://nvd.nist.gov/vuln/detail/CVE-2026-134636), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-134636 · Whole record: https://cve.day/CVE-2026-134636.json · Rebuilt by cve.day 2026-11-30T19:32:14.334Z
