CVE-2026-137843Zimbra's legacy delegation handler still grants loginAs, so mailbox access survives a password reset
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
loginAsgrant 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 withzmprov -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
What this class of flaw is: broken authorization
The user is who they claim to be, but the product lets them do more than they should: a missing or wrong permission check, a role assigned too broadly, or an object reachable by changing an ID. In identity products this often means a low-privilege account can grant itself admin or read other tenants.
Key terms: Authorization (AuthZ) · Privilege Escalation · Least Privilege
Related identity CVEs
- CVE-2025-66376 · Related flawZimbra ZCS chained with CVE-2025-48700 to steal MFA backup codes
- CVE-2026-136858 · Same flaw class: broken authorizationTeamCity agent registration lets an unauthenticated caller take over an authorized build agent
- CVE-2026-84869 · Same flaw class: broken authorizationScreenConnect client runs transferred files without host confirmation
- CVE-2026-42016 · Same flaw class: broken authorizationJFrog Artifactory checks a token's signature and issuer but not its scope
- CVE-2026-56155 · Same flaw class: broken authorizationAD FS elevation of privilege exploited as a zero-day
- CVE-2025-13881 · Same flaw class: broken authorizationKeycloak Admin API auth bypass to custom attributes
In the news
News and analysis on Start with Identity that name CVE-2026-137843 or link this brief, newest first.
Related on Start with Identity
- CVEZimbra ZCS chained with CVE-2025-48700 to steal MFA backup codes
Zimbra Collaboration Suite, chained with CVE-2025-48700, was used to steal MFA backup codes and app passwords (CERT-UA UAC-0233). Added to CISA KEV in mid-March
- BlogUnpatched Zimbra delegation flaw keeps attacker mailbox access after password resets
Rapid7 says a stored XSS in Zimbra can grant an attacker-controlled account loginAs rights over a victim's mailbox. The grant survives password changes and sess
- BlogAgent identity just got a protocol, which is the easy half
Okta shipped Agent SSO and got Cross App Access adopted into MCP the same month a GitHub issue was shown to reach CI secrets in Claude Code and Gemini CLI. The
- BlogAgentic AI Identity Is the Next Frontier (And Your IAM Stack Isn't Ready)
AI agents now act on behalf of users, call APIs, and chain tools together. They need identities, scopes, and audit trails, and almost no existing IAM stack was
- CVEFreeIPA idp-add evaluates input before checking the caller's rights
Any authenticated FreeIPA principal could push --organization or --base-url values into an eval() call that ran before the access check, reading the server proc
- CVEKeycloak authorization bypass
Keycloak failed an authorization check, so a caller could reach a resource their role should have blocked. Part of the April 2024 RHSA-2024:1868 set with CVE-20