CVE-2026-134636
published medium CVSS 4.0 · 6.3Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| webmin | — | webmin0 through 2.670 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.8 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| webmin | webmin | 0 through 2.670 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
6- Webmin 2.670 security audit catalogue https://doi.org/10.5281/zenodo.24396540
- https://github.com/webmin/webmin
- https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736
- https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206
- https://github.com/webmin/webmin/issues/2941
- VulnCheck Advisory: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret() https://www.vulncheck.com/advisories/webmin-through-2.670-predictable-totp-secret-generation-via-generate-base32-secret
Provider assertions
2VulnCheck · cna
Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ee2539463ec2268c48afdd70cd1d87edc32b5fab0e094d586ed1e206d5b89e86
- Ingested
- 30 Nov 2026, 18:59:00 UTC
- Source record
- Official CVE record