Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-86008 Overview
CVE-2026-86008 is an authorization flaw in Mailu, a mail server distributed as a set of Docker images. A domain manager can target an administrative account or another domain manager with greater privileges to reset passwords or mint API tokens for that account. The flaw stems from missing privilege checks when a lower-privileged domain manager acts on a mailbox that happens to belong to a higher-privileged user. Exploitation enables a full account takeover of global administrators or managers of other domains. The maintainers addressed the issue in commit 8577c929b4ade04d3cd4210cf036601abd793556. The weakness is classified under CWE-269: Improper Privilege Management.
Critical Impact
A domain manager can take over a global admin account by resetting its password or obtaining an API token, inheriting full administrative control of the Mailu instance.
Affected Products
- Mailu mail server (Docker image distribution)
- Mailu core/admin component — mailu/ui/access.py
- All versions prior to commit 8577c929b4ade04d3cd4210cf036601abd793556
Discovery Timeline
- 2026-10-16 - CVE-2026-86008 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-86008
Vulnerability Analysis
Mailu allows global administrators to delegate per-domain management to domain managers. The admin UI exposed password reset and API token minting operations guarded by a domain_admin permission wrapper. The check confirmed that the actor managed a domain containing the target mailbox but did not compare the actor's privileges against the target's privileges. A domain manager could therefore operate against a mailbox whose owner was a global admin or a manager of additional domains. Successful exploitation yields the target's credentials or an API token, granting the attacker that account's permissions across the entire Mailu deployment.
Root Cause
The root cause is a missing rank comparison between the actor and the target in the authorization layer. The patch introduces a _can_manage_user(actor, target) helper that denies the operation when the target is a global admin or manages any domain outside the actor's scope. Without this check, authority was derived solely from domain ownership of the mailbox, not from the relative privilege of the account itself.
Attack Vector
An authenticated domain manager issues a password reset or token issuance request through the Mailu admin interface against the email address of a higher-privileged user that happens to reside in a domain the attacker manages. The request succeeds, and the attacker uses the new credentials or token to authenticate as the privileged account.
return flask_login.current_user.global_admin
+def _can_manage_user(actor, target):
+ """ Whether ``actor`` may manage the account of ``target`` (a User).
+
+ Global admins may manage anyone, and any user may manage themselves.
+ Otherwise a (domain) manager may only manage a target that does not
+ outrank them: the target must not be a global admin, and every domain the
+ target manages must also be managed by the actor. Without this, a manager
+ of a domain could reset the password of -- or mint an API token for -- a
+ global admin (or a manager of another domain) who merely owns a mailbox in
+ the managed domain, taking over that privileged account (#2685).
+ """
+ if actor.global_admin or target.email == actor.email:
+ return True
+ if target.global_admin:
+ return False
+ return set(target.get_managed_domains()) <= set(actor.get_managed_domains())
+
+
@permissions_wrapper
def domain_admin(args, kwargs, model, key):
""" The view is only available to specific domain admins.
Source: Mailu patch commit 8577c929 — the fix adds _can_manage_user to block domain managers from operating on accounts that outrank them.
Detection Methods for CVE-2026-86008
Indicators of Compromise
- Password reset events in Mailu admin logs where the acting user is a domain manager and the target account is a global admin or a manager of a different domain.
- Newly minted API tokens associated with privileged accounts that were not initiated by the account holder.
- Successful logins from the privileged account immediately following a password reset performed by another user.
Detection Strategies
- Correlate Mailu core/admin request logs for POST requests to password reset and token endpoints with the authenticated session's role attribute and the target user's role.
- Alert on any administrative action where actor.global_admin == false and the target user holds global_admin or manages domains not managed by the actor.
- Baseline the normal rate of password resets per domain manager and flag outliers against privileged mailboxes.
Monitoring Recommendations
- Forward Mailu admin container logs to a centralized log platform and retain audit trails for account changes.
- Monitor API token creation events and bind them to the originating session, source IP, and user agent.
- Review domain manager assignments regularly and ensure no privileged account shares a domain with a less-trusted manager.
How to Mitigate CVE-2026-86008
Immediate Actions Required
- Upgrade Mailu to a build that includes commit 8577c929b4ade04d3cd4210cf036601abd793556 or later.
- Audit all accounts with the global_admin role and rotate their passwords and API tokens.
- Review domain manager assignments and remove any manager who should not retain privileged access.
- Inspect recent password reset and token issuance events for signs of prior exploitation.
Patch Information
The fix is implemented in Mailu commit 8577c929b4ade04d3cd4210cf036601abd793556 and tracked under GitHub Security Advisory GHSA-9pv5-rm76-3qwj, issue #2685, and pull request #4050. The patch introduces _can_manage_user() to enforce rank-aware authorization in core/admin/mailu/ui/access.py.
Workarounds
- Ensure that mailboxes belonging to global administrators and cross-domain managers do not reside in domains managed by lower-privileged domain managers until the patch is applied.
- Temporarily revoke the domain manager role from accounts that do not strictly require it.
- Restrict access to the Mailu admin UI to trusted networks using reverse-proxy allowlists.
# Pull the patched Mailu images and redeploy
docker compose pull
docker compose up -d
# Verify the running admin image contains the fix commit
docker compose exec admin \
git -C /app log --oneline | grep 8577c929b4ade04d3cd4210cf036601abd793556
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

