/

CVE-2026-86008

Severity:

HIGH RISK

(7.2)

Privilege Escalation (CWE-269) in Mailu Domain Admin

CVE-2026-86008

Deferred

Vulnerability type

Category:

Improper Privilege Management

CWE:

CWE-269, CWE-285

Impact:

Account Takeover and Privilege Escalation

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

Mailu contains an authorization failure in its domain management functionality that can let a lower-privileged domain manager reset passwords or obtain authentication tokens for higher-privileged accounts.

If a domain manager can target an administrative account or another domain manager with greater privileges, the attacker may take over that account and perform actions allowed by its permissions.

Mailu contains an authorization failure in its domain management functionality that can let a lower-privileged domain manager reset passwords or obtain authentication tokens for higher-privileged accounts.

If a domain manager can target an administrative account or another domain manager with greater privileges, the attacker may take over that account and perform actions allowed by its permissions.

Affected context

The issue occurs in Mailu deployments where domain managers can access account-management operations involving administrative accounts or other domain managers. It becomes risky when authorization checks do not adequately compare the requesting user's privileges with those of the targeted account, allowing sensitive password-reset or token-generation actions across privilege boundaries.

The issue occurs in Mailu deployments where domain managers can access account-management operations involving administrative accounts or other domain managers. It becomes risky when authorization checks do not adequately compare the requesting user's privileges with those of the targeted account, allowing sensitive password-reset or token-generation actions across privilege boundaries.

Exploit preconditions

  • Attack surface: Mailu domain-management functionality
  • Required access: An authenticated domain manager account
  • Trigger point: Password-reset or token-generation operations targeting a higher-privileged account
  • Why exploitation is possible: Authorization enforcement fails to prevent a lower-privileged manager from acting on accounts with greater privileges
  • Attack surface: Mailu domain-management functionality
  • Required access: An authenticated domain manager account
  • Trigger point: Password-reset or token-generation operations targeting a higher-privileged account
  • Why exploitation is possible: Authorization enforcement fails to prevent a lower-privileged manager from acting on accounts with greater privileges

Why this happens

The underlying bug is an authorization design failure in which sensitive account-management actions are permitted without consistently enforcing hierarchical privilege boundaries.

This maps primarily to CWE-269: Improper Privilege Management, because a principal can exercise capabilities reserved for a more privileged role. It also relates to CWE-285: Improper Authorization, since the application does not correctly verify whether the requester is permitted to perform the operation against the selected account.

The underlying bug is an authorization design failure in which sensitive account-management actions are permitted without consistently enforcing hierarchical privilege boundaries.

This maps primarily to CWE-269: Improper Privilege Management, because a principal can exercise capabilities reserved for a more privileged role. It also relates to CWE-285: Improper Authorization, since the application does not correctly verify whether the requester is permitted to perform the operation against the selected account.

Potential impact

  • An attacker may reset credentials for a higher-privileged account
  • An attacker could obtain authentication tokens for another account
  • A domain manager may take over an administrative or more privileged account
  • The attacker can exercise the permissions of the compromised account
  • Mail administration, user data, or domain configuration may be exposed or modified
  • An attacker may reset credentials for a higher-privileged account
  • An attacker could obtain authentication tokens for another account
  • A domain manager may take over an administrative or more privileged account
  • The attacker can exercise the permissions of the compromised account
  • Mail administration, user data, or domain configuration may be exposed or modified

General mitigation guidance

Mitigation should focus on enforcing authorization at every sensitive account-management operation and preserving privilege boundaries by default.

Common defensive patterns include:

  • Require explicit server-side checks that the requester may manage the target account
  • Prevent lower-privileged managers from resetting credentials or issuing tokens for higher-privileged principals
  • Apply deny-by-default authorization policies to administrative operations
  • Use centralized, role-aware authorization logic rather than relying on client-side restrictions
  • Limit token scope, lifetime, and administrative capabilities
  • Revoke potentially exposed sessions or tokens after suspected account takeover
  • Audit password resets, token issuance, and cross-role management actions

Mitigation should focus on enforcing authorization at every sensitive account-management operation and preserving privilege boundaries by default.

Common defensive patterns include:

  • Require explicit server-side checks that the requester may manage the target account
  • Prevent lower-privileged managers from resetting credentials or issuing tokens for higher-privileged principals
  • Apply deny-by-default authorization policies to administrative operations
  • Use centralized, role-aware authorization logic rather than relying on client-side restrictions
  • Limit token scope, lifetime, and administrative capabilities
  • Revoke potentially exposed sessions or tokens after suspected account takeover
  • Audit password resets, token issuance, and cross-role management actions

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis and code review of password-reset, token-generation, and account-management handlers
  • Review signals showing missing target-user privilege comparisons or authorization checks performed only in the user interface
  • Tests that attempt cross-role operations between domain managers, administrators, and ordinary accounts
  • Policy enforcement requiring centralized authorization for sensitive identity operations
  • Monitoring for unusual password resets, token issuance, or administrative actions initiated by domain managers
  • Automated security testing and code-review tools that identify missing object-level authorization checks

Organizations can look for this issue through:

  • Static analysis and code review of password-reset, token-generation, and account-management handlers
  • Review signals showing missing target-user privilege comparisons or authorization checks performed only in the user interface
  • Tests that attempt cross-role operations between domain managers, administrators, and ordinary accounts
  • Policy enforcement requiring centralized authorization for sensitive identity operations
  • Monitoring for unusual password resets, token issuance, or administrative actions initiated by domain managers
  • Automated security testing and code-review tools that identify missing object-level authorization checks

Sources

SourceLink
github.comgithub.com/Mailu/Mailu/commit/8577c929b4ade04d3cd4210cf036601abd793556
github.comgithub.com/Mailu/Mailu/issues/2685
github.comgithub.com/Mailu/Mailu/pull/4050
github.comgithub.com/Mailu/Mailu/security/advisories/GHSA-9pv5-rm76-3qwj

Frequently asked

questions

It may be exploitable through Mailu's management interface when that interface is reachable and the attacker has valid domain manager credentials.

The attacker generally needs access to a domain manager account. The vulnerability then allows that account to target accounts with greater privileges.

Enforce server-side, role-aware authorization checks for every password-reset and token-generation request, including validation of the target account's privilege level.

Use centralized access-control policies, test every role boundary, apply least privilege, and monitor sensitive identity-management operations.

It may be exploitable through Mailu's management interface when that interface is reachable and the attacker has valid domain manager credentials.

The attacker generally needs access to a domain manager account. The vulnerability then allows that account to target accounts with greater privileges.

Enforce server-side, role-aware authorization checks for every password-reset and token-generation request, including validation of the target account's privilege level.

Use centralized access-control policies, test every role boundary, apply least privilege, and monitor sensitive identity-management operations.

Find out what's already
exploitable in your codebase.