/

CVE-2026-126780

Severity:

HIGH RISK

(7.2)

Privilege Escalation (CWE-269) in Webmin ACL Groups

CVE-2026-126780

Deferred

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269

Impact:

Unauthorized privilege elevation and potential root-level command execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Webmin contains a privilege escalation vulnerability in its group-management flow: a delegated administrator with Webmin Users module access may submit an arbitrary module list when creating or editing a group. If they can also assign themselves to that group, they may gain access to privileged modules such as Command Shell and execute commands as root.

Affected context

The issue is in Webmin's acl/save_group.cgi group-management functionality. It becomes risky when a delegated administrator can use the Webmin Users module to create or edit groups, and the submitted mod parameter is not adequately restricted to modules they are authorized to grant. If the administrator can add themselves to a group with a privileged module, that access may enable command execution as root.

Exploit preconditions

  • Attack surface: Webmin's group-management interface and acl/save_group.cgi
  • Required access: Access to the Webmin Users module sufficient to create or edit groups
  • Trigger point: Submitting a group configuration containing unauthorized modules in the mod parameter
  • Additional condition: The delegated administrator can assign themselves to the resulting group
  • Why exploitation is possible: Module grants are not adequately constrained by the administrator's authorization, allowing them to grant access to privileged functionality such as Command Shell

Why this happens

The underlying issue is improper privilege management (CWE-269). The group-saving flow accepts module selections without sufficiently verifying that the submitting administrator is allowed to grant each one. This creates an insecure authorization boundary: a delegated administrator can potentially grant privileges beyond their intended role.

Potential impact

  • A delegated administrator may gain access to modules they are not authorized to use.
  • Access to a privileged module such as Command Shell could allow commands to be executed as root.
  • Webmin-managed systems may be exposed to unauthorized changes or further compromise.

General mitigation guidance

Defensive patterns focus on enforcing authorization at the point where group privileges are saved.

  • Restrict module grants to an explicit allowlist based on the acting administrator's permissions.
  • Prevent administrators from granting themselves privileges beyond their assigned role.
  • Apply least-privilege defaults to delegated accounts and group membership.
  • Validate and authorize each requested module on the server side rather than trusting submitted form values.
  • Separate sensitive administrative capabilities from routine user and group management.

How teams detect issues like this

Review authorization logic in group-management handlers, especially checks performed when processing submitted module lists. Static analysis and code review can look for user-controlled privilege assignments that lack per-module authorization checks. Audit Webmin group changes and investigate unexpected grants of sensitive modules, changes made by delegated accounts, or self-assignment to newly privileged groups. Policy checks can require explicit approval for grants of high-impact capabilities.

Sources

SourceLink
github.comgithub.com/webmin/webmin/blob/2.670/acl/save_group.cgi#L83
github.comgithub.com/webmin/webmin/commit/be54ba38c3b86a3647a62327e1de81d5d0db098a
github.comgithub.com/webmin/webmin/commit/c861e308f4ee4cff1795ccc7621fc75623e1bb90
vulncheck.comvulncheck.com/advisories/webmin-through-2.670-privilege-escalation-via-acl-save-group-cgi

Frequently asked

questions

The described attack requires access to Webmin's Users module with the ability to create or edit groups. The impact also depends on whether the account can assign itself to the group.

The described precondition is access to the delegated Webmin functionality; the vulnerability is not described as an unauthenticated attack.

Enforce server-side authorization for every module grant and reject grants that exceed the acting administrator's permissions.

Use least-privilege roles, prevent self-elevation, and test group-management flows to ensure submitted privilege changes are checked against policy.

Find out what's already
exploitable in your codebase.