Skip to main content

Webmin EUVDEUVD-2026-134905

| CVE-2026-134636 MEDIUM
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-11-25 VulnCheck GHSA-5rgp-pr3q-qqfp
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain victim's Webmin password
  2. Delivery
    Estimate 2FA enrollment time window
  3. Exploit
    Enumerate time/PID rand() seed candidates
  4. Execution
    Reproduce base32 TOTP secret
  5. Impact
    Compute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Webmin 0 ≤2.670

Affected Packages

euvd webmin no fix

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 68% exploitable
Prevalence
Medium
widely used Unix/Linux server admin panel, but not on every host
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Webmin

View all
CVE-2019-15107 CRITICAL POC
9.8 Aug 16

An issue was discovered in Webmin <=1.920. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2012-2982 MEDIUM POC
6.5 Sep 11

file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid

CVE-2012-2983 MEDIUM POC
5.0 Sep 11

file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited

CVE-2022-36446 CRITICAL POC
9.8 Jul 25

software/apt-lib.pl in Webmin before 1.997 lacks HTML escaping for a UI command. Rated critical severity (CVSS 9.8), thi

CVE-2022-0824 HIGH POC
8.8 Mar 02

Improper Access Control to Remote Code Execution in GitHub repository webmin/webmin prior to 1.990. Rated high severity

CVE-2019-12840 HIGH POC
8.8 Jun 15

In Webmin through 1.910, any user authorized to the "Package Updates" module can execute arbitrary commands with root pr

CVE-2017-15644 HIGH POC
8.6 Oct 19

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

CVE-2019-9624 HIGH POC
7.8 Mar 07

Webmin 1.900 allows remote attackers to execute arbitrary code by leveraging the "Java file manager" and "Upload and Dow

CVE-2015-2079 CRITICAL POC
9.9 Apr 28

Usermin 0.980 through 1.x before 1.660 allows uconfig_save.cgi sig_file_free remote code execution because it uses the t

CVE-2021-31761 CRITICAL POC
9.6 Apr 25

Webmin 1.973 is affected by reflected Cross Site Scripting (XSS) to achieve Remote Command Execution through Webmin's ru

CVE-2017-15645 HIGH POC
8.8 Oct 19

CSRF exists in Webmin 1.850. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authenticati

CVE-2022-35132 HIGH POC
8.8 Oct 25

Usermin through 1.850 allows a remote authenticated user to execute OS commands via command injection in a filename for

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy