Skip to main content
← Vulnerabilities

Webmin through 2.670 OS Command Injection via Samba User Account Options

8.6HighCNA
Exploited
No known exploitation
Fix
Fix or patch referenced
Who is exposed
Specific setups only

Do first: Check whether your setup matches what the bug needs. Webmin version 2.670 and earlier (Samba module). Samba user account options are passed by create_user and modify_user to backquote_logged.

Published
Last modified
17/100 · provisional
Specific setups only
None on Exploit-DB, Metasploit or GitHub

Summary

Webmin through 2.670 contains an OS command injection vulnerability in samba/save_euser.cgi that allows authenticated Samba user maintainers to inject commands via unvalidated opts parameter. Attackers can embed shell metacharacters in account option flags passed by create_user and modify_user to backquote_logged, executing commands as root.

cve.now Index

17Pcve.now Index 17 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure8/25Specific setups only, reachable over the network
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity8.6/10CVSS 8.6
  • No patch0/5No signal

What would change the score

  • Would score about 67 if added to CISA KEV
  • Would score about 62 if CISA's SSVC rates exploitation active
  • Would score about 24 if CISA's SSVC rates it automatable

What to do

  • Check whether your setup matches what the bug needs.

    Webmin version 2.670 and earlier (Samba module). Samba user account options are passed by create_user and modify_user to backquote_logged.
  • Apply the patch listed under Evidence.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • webmin webmin

    through 2.670

Evidence 4

  1. Patch
  2. Repository
  3. Repository
  4. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-125391

Is CVE-2026-125391 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What does this mean?

Webmin's Samba module passes user account option values into a shell command without cleaning them first. A user who can maintain Samba user accounts in Webmin can therefore inject shell commands, which run as root.Source: vulncheck.com

Which versions are affected by CVE-2026-125391?

webmin: through 2.670.Source: cve.now feed data

Am I affected, and how do I check?

Webmin 2.670 and earlier are affected when the Samba module is used, since account option flags passed to create_user and modify_user reach backquote_logged. To check, run the Webmin version command or look at the version shown in the Webmin interface, and see whether the Samba module is in use.Source: vulncheck.com

How do I fix CVE-2026-125391?

No fixed version is listed in the checked facts, so the sources do not name an upgrade target. Check the Webmin project for a release newer than 2.670 that addresses this issue.Source: vulncheck.com