Predictable TOTP secret generation in Webmin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Webmin through 2.670 uses a weak pseudo-random number generator to create TOTP two-factor secrets in generate_base32_secret(). The generator is seeded with the time and process ID, which makes the secrets predictable (CWE-338). An attacker who knows a user's password and can estimate the enrollment time can enumerate candidate seeds, reproduce the secret, and bypass the second authentication factor.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Webmin.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Timeline
- 2026-11-25 Threatist record created from CVE-2026-134636
- 2026-11-25 Alias added: GHSA-5rgp-pr3q-qqfp
- 2026-11-30 CISA SSVC decision points changed
References
More Webmin vulnerabilities
- TI-2019-11278 Command injection in Webmin password_change.cgi KEVCVSS 3.1CRITICAL 9.8
- TI-2022-16770 software/apt-lib.pl in Webmin before 1.997 lacks HTML escaping for a UI command. CVSS 3.1CRITICAL 9.8
- TI-2022-00731 Improper Access Control to Remote Code Execution in webmin/webmin CVSS 3.1HIGH 8.8
- TI-2019-09619 In Webmin through 1.910, any user authorized to the "Package Updates" module can execute… CVSS 3.0HIGH 8.8
- TI-2015-01866 Code injection in Usermin CVSS 3.1CRITICAL 9.9
- TI-2022-15852 Usermin through 1.850 allows a remote authenticated user to execute OS commands via… CVSS 3.1HIGH 8.8
Sources
- CVE-2026-134636 · CVE Program
- CVE-2026-134636 · NVD
- FIRST EPSS
- GHSA-5rgp-pr3q-qqfp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences