---
id: "CVE-2026-125391"
page: "https://infrastack.ai/live/CVE-2026-125391"
kind: "vulnerability"
aliases: ["CVE-2026-125391"]
title: "Webmin: Samba user maintainers can run commands as root"
severity: "high"
cvss: 8.6
epss: null
exploited: false
status: "open"
category: "runtime"
products: [{"name": "webmin", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["linux", "runtime", "samba", "self-hosted", "webmin"]
not_affected_if: ["no-samba-maintainers", "no-webmin", "samba-module-disabled"]
published_at: "2026-11-10T00:17:12+00:00"
first_seen_at: "2026-11-10T00:28:44+00:00"
updated_at: "2026-11-10T00:29:47+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125391", "first_seen_at": "2026-11-10T00:28:44+00:00"}]
exploit_sources: []
---

# Webmin: Samba user maintainers can run commands as root

Link for people: https://infrastack.ai/live/CVE-2026-125391 (this .md is for agents)

Webmin through 2.670 passes unvalidated opts values from samba/save_euser.cgi into a shell command, so shell metacharacters in account option flags run on the host. An authenticated Samba user maintainer can execute commands as root.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:webmin affected range not listed fixed no fixed version listed

## How to check

- Check the installed Webmin version against the product ranges in the NVD entry (`webmin --version` or the version shown in the Webmin dashboard)
- Look for the Samba module (samba/save_euser.cgi) being enabled and used for user maintenance

## Fix

- Webmin: a patched version is linked from the patch reference, but the sources do not state the fixed version number

## Timeline

- 2026-11-10T00:28:44+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125391

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/webmin-through-2.670-os-command-injection-via-samba-user-account-options
- [fix] Patch: github.com https://github.com/webmin/webmin/commit/18cab89b1fc74ab7e8b1b8b90bbccbe5aba99154

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
