Read the docs

Predictable TOTP secret generation in Webmin

Priority LOW 28CWE-338Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00462 32nd percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
Webminwebminup to 2.670—No fix listedCNA
  • webmin VendorWebmin Affected up to 2.670 Fixed in — No fix listed CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:*——Webmin
  • cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:* Versions — — ·Webmin

Remediation

The sources list no fixed version for Webmin.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-134636
  2. 2026-11-25 Alias added: GHSA-5rgp-pr3q-qqfp
  3. 2026-11-30 CISA SSVC decision points changed

References

  • 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
See all 175 →

Sources