Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain victim's Webmin password
-
DeliveryEstimate 2FA enrollment time window
-
ExploitEnumerate time/PID rand() seed candidates
-
ExecutionReproduce base32 TOTP secret
-
ImpactCompute valid code and bypass second factor
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Exploitation requires ALL of: (1) the attacker already knows the target user's Webmin password - this flaw only defeats the second factor, not the first; (2) the account's TOTP 2FA secret was created by the vulnerable generate_base32_secret() using a time- and PID-seeded rand(); (3) the attacker can estimate the enrollment time closely enough to bound the time component of the seed; and (4) the attacker enumerates the candidate PID/seed space to reproduce the secret. Limiting factors: 2FA is an opt-in, non-default feature, so only accounts that enrolled TOTP are affected; the known-password prerequisite means this is not a standalone bypass; and CVSS AC:H/AT:P reflect the timing-estimation and seed-enumeration effort required. Affected: Webmin through 2.670; the input does not list a fixed version, so verify the patched release with the vendor. |
| Impact | The input rates this CVSS 4.0 6.3 (medium). The vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N shows a network-reachable flaw but with HIGH attack complexity and a present attack requirement (AT:P) - these capture the timing window and PID/seed enumeration the attack depends on. PR:N is technically correct (no Webmin account or system privilege is granted to the attacker), but it understates a decisive real-world precondition: the attacker must ALREADY know the victim's password, since this flaw only defeats the SECOND factor. That makes it a defense-in-depth bypass, not a standalone account takeover. It is NOT in CISA KEV (no active-exploitation signal), and no EPSS score was supplied, so widespread-exploitation probability cannot be quantified from the input. No confirmed working exploit code is present; the references are a VulnCheck advisory and a research paper (Zenodo DOI) that document the technique. The vuln.today Decision label is 'this_month' - a real, patch-on-a-normal-cadence issue rather than an emergency. Net: a genuine cryptographic weakness (CWE-338, weak PRNG) worth remediating this month, but its practical risk is gated by needing the password first, the 2FA feature being enabled, and non-trivial seed enumeration - a priority below a high-EPSS or KEV-listed unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker who has already obtained a Webmin user's password (via phishing, reuse, or prior breach) targets that account's TOTP second factor. Knowing the secret came from a time- and PID-seeded rand(), they estimate when the victim enrolled, enumerate the small candidate seed space, regenerate candidate base32 secrets, and compute valid TOTP codes to pass 2FA and log in. No verified working exploit code is public, though VulnCheck's advisory and an associated research paper describe the method in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Predictable TOTP secret generation in Webmin through 2.670 allows an attacker who already knows a user's Webmin password to reconstruct that user's two-factor seed and defeat the second authentication factor. The flaw is not a standalone bypass: exploitation additionally requires that the account enrolled TOTP through the vulnerable generate_base32_secret() function, that the attacker can narrow down the enrollment time, and that the attacker enumerate the candidate time/PID seed space - conditions reflected in the assessed vector's AC:H/AT:P ratings. TOTP is an opt-in, non-default feature, the input records no fixed version, and no public exploit was identified at time of analysis.
RemediationAI
No vendor-released patch version appears in the supplied data, so confirm the fixed release with the Webmin project and consult the upstream issue https://github.com/webmin/webmin/issues/2941 and the VulnCheck advisory https://www.vulncheck.com/advisories/webmin-through-2.670-predictable-totp-secret-generation-via-generate-base32-secret before upgrading; the project repository is at https://github.com/webmin/webmin. Because re-enrolling TOTP on an unpatched 2.670 host would simply regenerate the secret through the same weak rand() path, defer secret regeneration until after the fixed release is installed. Until then, the actionable controls target the known-password prerequisite: enforce strong, unique Webmin credentials and remove accounts that do not need access, and restrict reachability of the Webmin listener (default port 10000) to trusted management networks or a VPN, with the trade-off that remote administrative access becomes dependent on that path. Where TOTP cannot be trusted and policy allows, administrators may temporarily rely on an externally generated and managed second factor or additional network-layer authentication, accepting the operational overhead. Disabling TOTP outright is not a safe mitigation, since it removes the second factor entirely and leaves the known-password scenario as a single-factor compromise.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-338 (use of a cryptographically weak pseudo-random number generator). Webmin's two-factor helper library (twofactor-funcs-lib.pl, line 206 in the 2.670 tree) builds TOTP base32 secrets using Perl's rand() seeded with a combination of time and process ID, as shown in the referenced web-lib-funcs.pl line 9736. Because both seed components are low-entropy and partly observable - the enrollment timestamp can be estimated and the PID space on a given host is finite - the seed can be brute-forced and the resulting secret reproduced, yielding valid TOTP codes. The affected component is Webmin itself (CPE cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:*, all releases through 2.670, the latest version referenced in the source links) and the vulnerability class is scoped strictly to 2FA secret generation; nothing in the supplied sources describes a weakness in password verification, session handling, or the TOTP verification step itself. Reported by VulnCheck and cross-referenced with a Zenodo paper (doi.org/10.5281/zenodo.24396540) and upstream GitHub issue 2941.
Know when Webmin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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-password precondition plus enrollment-time estimation and seed enumeration drive AC:H; no account or system privilege is granted so PR:N; predicting the 2FA secret yields limited confidentiality and integrity impact (C:L/I:L), no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in Webmin Multiple Security Vulnerabilities
View all 34An issue was discovered in Webmin <=1.920. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid
file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited
software/apt-lib.pl in Webmin before 1.997 lacks HTML escaping for a UI command. Rated critical severity (CVSS 9.8), thi
Improper Access Control to Remote Code Execution in GitHub repository webmin/webmin prior to 1.990. Rated high severity
In Webmin through 1.910, any user authorized to the "Package Updates" module can execute arbitrary commands with root pr
SSRF exists in Webmin 1.850 via the PATH_INFO to tunnel/link.cgi, as demonstrated by a GET request for tunnel/link.cgi/h
Webmin 1.900 allows remote attackers to execute arbitrary code by leveraging the "Java file manager" and "Upload and Dow
Usermin 0.980 through 1.x before 1.660 allows uconfig_save.cgi sig_file_free remote code execution because it uses the t
Webmin 1.973 is affected by reflected Cross Site Scripting (XSS) to achieve Remote Command Execution through Webmin's ru
CSRF exists in Webmin 1.850. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authenticati
Usermin through 1.850 allows a remote authenticated user to execute OS commands via command injection in a filename for
EUVD-2026-134905
GHSA-5rgp-pr3q-qqfp
NVD
CVE.org
EPSS
Exploit-DB