# Zimbra's legacy delegation handler still grants loginAs, so mailbox access survives a password reset

Source: https://startwithidentity.com/cves/cve-2026-137843/
Last updated: 2026-12-04
License: content by Start with Identity. Cite the source URL.

---

## What broke

Zimbra's `loginAs` right lets one account open another user's mailbox with its own credentials. Rapid7 reported in April 2026 that a caller acting for a mailbox could grant that right to another account (CVE-2026-50054), and ZCS 10.1.20 (July 20) blocked it in the `GrantRightsRequest` handler. Rapid7 then found that the separately registered legacy `GrantPermissionRequest` handler has its own parser, never runs the new check, and still writes the `loginAs` grant to the account ACL in LDAP. On 10.1.20 it returned HTTP 200 where the patched path returned `PERM_DENIED`.

The Rapid7 CNA scores CVE-2026-137843 CVSS 3.1 8.1 with CWE-863 (incorrect authorization) and lists ZCS 10.1.0 through 10.1.21 as affected. Rapid7 published details and proof-of-concept code on December 2, the day ZCS 10.1.22 shipped without a fix for it. There is no confirmed fixed release, and no exploitation has been reported.

## Why it matters

The grant needs authority over the victim's mailbox, which Rapid7 gets from stored XSS in the same research: script running in the victim's session sends the request with the victim's cookie and CSRF token. After that, the attacker's own account reads, sends and deletes the victim's mail. Changing the victim's password or revoking their sessions does not touch the ACL entry, and the Classic client's Delegates view showed nothing while the grant was active. The usual account takeover response (reset, revoke, move on) leaves the attacker in place.

## What to do

- Remove any `loginAs` grant that was not deliberately assigned and watch for new ones, since no patch exists. Patching later will not remove grants made before it.
- Apply 10.1.22 to close the stored XSS bugs Zimbra has fixed (the Classic Scheduler XSS, CVE-2026-93648, is still open), since script in a victim's session is how Rapid7 reached this grant.

## After you patch

- As the zimbra user, list stored grants with `/opt/zimbra/bin/zmprov -l sa '(zimbraACE=*loginAs)'`, then inspect each with `zmprov -l ga <account> zimbraACE`, resolve the grantee and compare it with approved delegation records.
- Add an ACL check to your mailbox compromise runbook next to the password reset, along with a review of Sieve filter rules.

## Sources

- [NVD: CVE-2026-137843](https://nvd.nist.gov/vuln/detail/cve-2026-137843)
- [Rapid7: Calendar forgery and stored XSS in Zimbra (part 2)](https://rapid7.com/blog/post/ve-calendar-forgery-and-stored-xss-in-zimbra-part-2)
- [Rapid7 Zimbra vulnerability tracker](https://github.com/jburgess-r7/zimbra-vulnerability-tracker)
- [The Hacker News: Unpatched Zimbra flaw keeps mailbox access after password resets](https://thehackernews.com/2026/12/new-unpatched-zimbra-flaw-lets-hackers.html)
