# CVE-2026-134636: Webmin through 2.670 Predictable TOTP Secret Generation via generate\_base32\_secret()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-25 · Modified: 2026-11-30
- Record: https://cvemate.com/vulnerability/CVE-2026-134636 · JSON: https://cvemate.com/vulnerability/CVE-2026-134636/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.462%, percentile 41.743%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- webmin webmin: ≤ 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>

---

Data as of 2026-12-05T10:32:38.454Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
