Introduction
A single crafted XML request sent to a Zimbra AutoDiscover endpoint can consume more than three seconds of server processing before anyone has logged in, and in testing a modest burst of those requests was enough to time out most webmail and SOAP probes against the same host. On self-hosted mail deployments where mailboxd serves webmail, SOAP, REST and synchronization from one shared process, that pre-authentication cost lands directly on the services users depend on.
Zimbra Collaboration Suite (ZCS) is a self-hosted email and collaboration platform covering calendars, contacts, tasks and file sharing, sold commercially as Network Edition with Standard and Professional licences. BleepingComputer describes it as serving hundreds of millions of people and organizations, including thousands of businesses and hundreds of government agencies. Its Classic and Modern web clients share a mailbox server, which is why this bug reaches beyond the AutoDiscover route itself.
Technical Information
CVE-2026-137857 is an unauthenticated denial of service classified as CWE-407 (Inefficient Algorithmic Complexity). The exposure sits on a core public HTTPS service on port 443, at the route /Autodiscover/Autodiscover.xml. The vulnerable implementation is AutoDiscoverServlet.java, specifically the work doPost() performs before Basic authentication runs.
Root cause
When a request arrives, doPost() parses the request body into a DOM document and calls doc.getElementsByTagName("Request") to collect every nested Request descendant. For each element returned, it calls getTagValue("EMailAddress", ...) and getTagValue("AcceptableResponseSchema", ...). Each of those calls performs another descendant-wide element.getElementsByTagName(tag) search.
The critical detail is the early exit. A legitimate AutoDiscover request contains a single Request element with plain-text EMailAddress and AcceptableResponseSchema values, and the normal path breaks out early. By nesting N Request elements and placing only element-valued (empty) fields at the deepest level, getNodeValue() returns null. That null return prevents the early break, so the servlet keeps iterating through the nested requests, searching overlapping subtrees again on each pass.
For N nested elements, the repeated descendant searches traverse subtrees of approximately N, then N minus one, and so on, and they do so twice, once for each searched field. The result is O(N squared) traversal work from a body whose size grows only linearly. Because the authenticate() call happens only after this loop completes, the entire cost is paid before any credential check, so no valid account is required.
Attack flow
- The attacker constructs an XML document that nests many
Requestelements and placesEMailAddressandAcceptableResponseSchemafields, with element children in place of text, beneath the deepest element. - The attacker POSTs this body to
/autodiscover/autodiscover.xmlover HTTPS, with no credentials. - The servlet parses the document, gathers all nested
Requestdescendants, and runs two descendant-wide searches per element. The null field values defeat the early break. - The quadratic traversal burns mailboxd CPU and request-worker capacity.
- Because mailboxd resources are shared, concurrent requests cause webmail, SOAP, REST and synchronization requests to time out. Service recovers after the request wave ends.
Proof of Concept
A viable public PoC exists, authored by Jonah Burgess (CryptoCat) of Rapid7 and published in the jburgess-r7/zimbra-vulnerability-tracker repository. The repository includes both a technical write-up (vulnerabilities/CVE-2026-137857.md) and an executable Python exploit script (pocs/CVE-2026-137857/autodiscover_pre_auth_cpu_dos.py). The README vulnerability index maps CVE-2026-137857 to "Exhaust CPU in AutoDiscover XML parsing" affecting ZCS 10.1.0 through 10.1.22 with no confirmed fix.
The PoC builds an XML body of this form:
<Autodiscover> <Request> <Request> <!-- repeat to the selected depth --> <Request> <EMailAddress><x/></EMailAddress> <AcceptableResponseSchema><x/></AcceptableResponseSchema> </Request> </Request> </Request> </Autodiscover>
The script is a single-request Python 3 tool using requests. Its payload builder:
def payload(depth: int) -> bytes: return ( '<?xml version="1.0" encoding="UTF-8"?>' "<Autodiscover>" + "<Request>" * depth + "<EMailAddress><x/></EMailAddress>" + "<AcceptableResponseSchema><x/></AcceptableResponseSchema>" + "</Request>" * depth + "</Autodiscover>" ).encode()
It POSTs the body (Content-Type text/xml; charset=utf-8) to /autodiscover/autodiscover.xml (auto-appended if no path is given) and prints the HTTP status and elapsed time. Usage:
python3 pocs/CVE-2026-137857/autodiscover_pre_auth_cpu_dos.py \ --target https://mail.lab.local \ --depth 4000 \ --insecure
The write-up reports measured results: at depth 16,000, a single 304,175-byte request consumed about 3.28 seconds of server processing, versus 0.05 to 0.06 seconds for equal-size control requests. A 256-request wave caused 22 of 30 public homepage probes and 21 of 30 authenticated SOAP probes to time out, with service recovering after the wave. This demonstrates that the quadratic parse can saturate shared mailboxd CPU and worker capacity pre-authentication and deny webmail, SOAP, REST and sync traffic. An upstream structural or request-body size limit may block the payload. No fixed release is established through ZCS 10.1.22.
Detection Methods
This is a behaviour-driven detection problem. The bug does not steal data or leave files behind, so you detect it by resource and request patterns rather than by artifacts.
Network and access-log hunting
Rapid7's investigation guide starts with the request pattern: repeated POSTs to /Autodiscover/Autodiscover.xml. Legitimate AutoDiscover traffic is usually small and infrequent, so a run of POSTs from one source, or a small group of sources, stands out. Useful additions to that baseline:
- Request size. Normal AutoDiscover requests are a few hundred bytes. The researcher's lab requests were 76,157 bytes at depth 4,000 and 304,175 bytes at depth 16,000. POST bodies tens or hundreds of kilobytes in size sent to this path are a strong lead if your reverse proxy logs request length.
- Response latency. At depth 16,000 one request took about 3.28 seconds, versus about 0.05 to 0.06 seconds for control requests of the same size. Look for a small payload class combined with long upstream response time on this URI.
- Status code. The lab run at depth 4,000 returned an HTTP 400, not a 200 or 401. Do not filter these out as harmless client errors, because the CPU cost is already paid by the time the error returns.
The guide points to /opt/zimbra/log/nginx.access.log as the place to correlate client addresses and HTTP results for Zimbra proxy traffic.
Host and service telemetry (the main signal)
The guide advises correlating the request burst with mailboxd CPU pressure, request-worker saturation and timeouts on other endpoints at the same time. That cross-endpoint timeout is what separates this from an ordinary failed-login spike. The 256-request wave caused 22 of 30 public homepage probes and 21 of 30 authenticated SOAP probes to time out, recovering after the wave. In practice:
- Alert when mailboxd JVM CPU stays high and Jetty worker-thread utilization is near its maximum, especially when neither lines up with a rise in normal user traffic.
- Watch synthetic or real latency and timeouts on webmail, SOAP, REST and sync routes. A short, sharp outage that clears by itself and lines up with AutoDiscover POST volume fits this attack.
- Line up the start and end of the CPU spike with the first and last AutoDiscover POSTs from the suspect source.
Request-body inspection (where available)
Default logs do not retain the XML body. If a WAF, reverse proxy or application monitor does, the guide recommends parsing the body and checking nesting depth and repeated Request elements. A legitimate request has one Request element with plain-text field values. Treat as highly anomalous any body with deeply nested Request elements, or with child elements where text values should be. This is a structural check done after parsing: count Request depth and occurrences. It is not a literal string match, so whitespace or formatting changes do not defeat it.
Limits of the available tooling
The guide states that no unique default-log string proves this condition. No public YARA, Sigma, Snort or Suricata signature exists for this CVE. The tracker's detections/hunt_logs.py script has hunts for related Zimbra issues but no AutoDiscover hunt, so running it will not find this attack. Confidence comes from a POST burst, worker and CPU saturation, and cross-endpoint timeouts happening together. A single slow AutoDiscover request or a single 400 proves nothing.
Incident-response note
Rapid7 notes that replaying the exhaustion payload during an incident is unnecessary. Confirm exposure from the request, CPU and worker evidence, and do not re-trigger the outage on production systems.
Affected Systems and Versions
NVD lists ZCS 10.1.0 through 10.1.21 as affected. The researcher's technical advisory extends the affected range through 10.1.22 and states that no fixed release has been established through that version. Because of this discrepancy, 10.1.22 should not be represented as a confirmed fix. The repository README vulnerability index also maps CVE-2026-137857 to ZCS 10.1.0 through 10.1.22 with no confirmed fix.
Vendor Security History
Rapid7 reports more than 80 vulnerabilities during its ZCS assessment, with published work including authorization failures, calendar forgery, stored cross-site scripting and mailbox delegation issues. Some findings received fixes while others remained without publicly listed fixes. Rapid7 lists ZCS 10.1.21 as fixing three browser vulnerabilities, while several calendar and delegation findings remain unresolved in that article. These observations show a mixture of remediation and outstanding security work rather than a quantified measure of overall vendor security quality. Separately, CVE-2026-73570, a different command injection vulnerability, was reportedly exploited to compromise more than 270 Zimbra instances according to BleepingComputer. That history is relevant to platform threat exposure but does not prove exploitation of CVE-2026-137857.
References
- NVD: CVE-2026-137857
- CVE Record: CVE-2026-137857
- zimbra-vulnerability-tracker repository
- Technical write-up: CVE-2026-137857.md
- PoC script: autodiscover_pre_auth_cpu_dos.py
- Repository README vulnerability index
- Raw write-up (CVE-2026-137857.md)
- Investigation guide: authentication.md
- hunt_logs.py
- Rapid7: Calendar Forgery and Stored XSS in Zimbra (Part 2)
- BleepingComputer: Hackers breached over 270 Zimbra servers
- OpenCVE: CVE-2026-137857
- VulDB: CVE-2026-137857



