Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Samba user maintainer in Webmin
-
DeliverySubmit crafted opts flag with shell metacharacters
-
ExploitOptions concatenated into command via create_user/modify_user
-
ExecutionReach backquote_logged unescaped
-
ImpactExecute arbitrary commands as root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Webmin account that has been delegated Samba user-maintainer access to the Samba module (save_euser.cgi) - i.e., rights to create or modify Samba user accounts; this is the PR:H limiting factor and the primary barrier to exploitation. Given that access, the attacker supplies shell metacharacters in the account option flags (the opts parameter), which create_user/modify_user pass unescaped to backquote_logged, so commands run as root. Affected: Webmin through 2.670. Limiting factors: exploitation is impossible for unauthenticated users or for authenticated users without the Samba user-management delegation, and no user interaction by a victim is needed (UI:N). The fix commit wraps the option string with quotemeta(); per the available evidence, applying the fixed code is the remediation. |
| Impact | This is a genuine but access-gated priority rather than a drop-everything emergency, and the signals are internally consistent. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N) and the description agree: exploitation is network-reachable and low-complexity once the attacker already holds a privileged role, but it requires PR:H - specifically an authenticated Webmin user granted Samba user-maintainer rights, not an anonymous attacker. The vuln.today decision label is 'this_week', not 'act_now' or 'emergency', which aligns with the privilege prerequisite. The payoff is severe: the injected commands run as root (VC:H/VI:H/VA:H), so a lower-trust Samba module operator achieves full OS compromise - a meaningful privilege-escalation path. No EPSS score, no CISA KEV entry, and no exploitation-probability signal were supplied, so widespread automated exploitation cannot be asserted; absence of these is not evidence of safety but should not be read as active exploitation either. The provided references are the Webmin repo, the vulnerable source line, the fix commit, and a VulnCheck advisory - i.e., vendor/analyst confirmation of the flaw and its fix, not a weaponized exploit. Net: a real, root-level issue worth prompt patching, but its blast radius is limited to environments that delegate Samba user management to semi-trusted accounts. |
| Exploit ScenarioDerived | An attacker who holds a Webmin account with Samba user-maintainer rights uses the Samba module's user create/modify function (save_euser.cgi) and embeds shell metacharacters in an account option flag (the opts parameter). Those options are concatenated into a command string passed to backquote_logged by create_user/modify_user, so the injected commands execute as root on the host. No public exploit identified at time of analysis; a fix commit exists but no verified working exploit code was supplied. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Webmin 2.670 and earlier allows an authenticated user who has been delegated Samba user-maintainer access to run arbitrary commands as root by placing shell metacharacters in Samba account option flags handled by samba/save_euser.cgi. The opts value flows through create_user/modify_user into backquote_logged without escaping, so the command executes with the privileges of the Webmin process; the high-privilege Samba delegation is the main barrier and no victim interaction is required. No public exploit has been identified at time of analysis, and the upstream commit wraps the option string with quotemeta(); the available data does not name a released fixed version.
RemediationAI
The supplied evidence identifies applying the upstream fix as remediation: deploy the change in commit https://github.com/webmin/webmin/commit/18cab89b1fc74ab7e8b1b8b90bbccbe5aba99154, which replaces the hand-built quoted option string with quotemeta() around the bracketed @opts value, or move to a Webmin release that contains this commit; the data does not name an exact released fix version, so released patched version status is not independently confirmed. Until that code is deployed, restrict the Samba user-maintainer delegation to trusted accounts and limit access to samba/save_euser.cgi to administrators who require it, understanding that this reduces exposure but does not fix the command-injection path. No other workaround is specified in the supplied advisory references.
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
Webmin's Samba administration module exposes samba/save_euser.cgi for creating and modifying Samba user accounts. In affected versions, create_user and modify_user in samba/samba-lib.pl concatenate the account option flags into the @opts string, embed that string in a shell command, and pass it to backquote_logged; because the option content is not escaped, shell metacharacters break out of the intended argument and are interpreted by the shell running as root. This is CWE-78 OS command injection, and the upstream diff replaces the hand-built single-quoted argument with quotemeta() around the bracketed option string, indicating that escaping all shell metacharacters before execution is the intended fix. The trigger requires an authenticated Webmin session whose user has Samba user-maintainer delegation and can reach the create or modify paths in save_euser.cgi; the supplied sources do not describe another trigger path.
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:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable (AV:N) and low-complexity (AC:L) but needs the privileged Samba user-maintainer role (PR:H); unescaped injection yields root command execution, so C:H/I:H/A:H.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Executive ViewAI
A high-severity vulnerability in Webmin 2.670 and earlier enables authenticated users with delegated Samba user-maintainer access to execute arbitrary commands as root. This poses a significant risk to organizations using Webmin for Samba administration, as a delegated insider or compromised account could gain full control of the underlying system, leading to data breaches, service disruptions, or further network compromise.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting Samba user-maintainer delegation to trusted administrators, monitoring for anomalous command execution, and network segmentation to limit Webmin exposure.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in Webmin Command Injection and Stored XSS
View all 2An 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-120554
GHSA-wc4p-j42q-3r22
NVD
CVE.org
EPSS
Exploit-DB