79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

Zimbra Public Document RCE Persists in 10.1.22 (CVE-2026-93643)

Zimbra's OnlyOffice integration lets an unauthenticated visitor use a public Briefcase document to run commands as zimbra; 10.1.22 does not fix it.

TL;DR

  • Zimbra's bundled OnlyOffice service accepts an editor token for commands the token was never meant to authorize. An unauthenticated visitor can start from an existing public Briefcase document and run commands as the zimbra account.
  • ZCS 10.1.16 through 10.1.22 is affected when OnlyOffice Document Editing and the public /zdocument proxy are enabled. Rapid7's tracker lists 11 Critical findings in the set, and seven have no complete fix.
  • Rapid7 published the technical analyses and public proofs of concept on 2026-12-02. The CVE records for the remaining findings were published on 2026-12-03. No in-the-wild exploitation is reported, and the CVEs are not in CISA KEV as of 2026-12-03.
  • ZCS 10.1.22 fixes unrelated NGINX flaws and does not fix these findings. Apply the proxy block and ownership workaround in "How do I fix it?", and remove public Briefcase shares you do not need.

Am I affected?

All of these must hold for the unauthenticated document-service chain:

  • The server runs Zimbra Collaboration Suite 10.1.16 through 10.1.22.
  • OnlyOffice Document Editing is installed and enabled.
  • The public /zdocument proxy is reachable from the network the attacker can use.
  • A supported document is publicly shared in Briefcase, or the attacker knows the owner address and can find the item ID.

An ordinary mailbox account is enough for the authenticated route. It needs a supported document in that user's own Briefcase and no public share.

The stored cross-site scripting findings in the same set need a signed-in recipient. The recipient must use the Classic web client or open a crafted XML attachment, depending on the CVE. Group Calendar and the Attach Mail Zimlet are extra conditions for two of them.

Finding Affected versions Fixed version
CVE-2026-93643, unsigned /downloadas write to code execution ZCS 10.1.16 to 10.1.22 with OnlyOffice and /zdocument No complete fix. 10.1.21 and 10.1.22 make the program tree root-owned, and extended permission repair can reopen it
CVE-2026-93646, editor token accepted by DocBuilder ZCS 10.1.16 to 10.1.20 with OnlyOffice and /zdocument 10.1.21 blocks the public DocBuilder path; the token logic is unchanged
CVE-2026-93648, CVE-2026-137834, CVE-2026-137835, CVE-2026-137836, CVE-2026-137837, stored XSS ZCS 10.1.0 to 10.1.22 No fixed release
CVE-2026-93641, CVE-2026-93642, CVE-2026-93647, CVE-2026-66912, stored XSS Before 10.1.21 10.1.21

The 10.1.22 release on 2026-12-02 carries zimbra-proxy-patch and an updated NGINX. It fixes five NGINX proxy flaws, not the Zimbra application findings in this post.

Check the running version and whether the OnlyOffice packages are installed:

su - zimbra -c "zmcontrol -v"
dpkg -l zimbra-onlyoffice 2>/dev/null | tail -1   # Debian and Ubuntu
rpm -q zimbra-onlyoffice                          # RHEL-based

Check whether the public document proxy is configured, and whether the converter directory is writable by the service account:

grep -R "zdocument" /opt/zimbra/conf/nginx/ 2>/dev/null | head
sudo -u zimbra sh -c 'test -w /opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin && echo WRITABLE || echo not-writable'

How do I fix it?

There is no complete vendor fix for the document-service chain in this set. Install ZCS 10.1.21 or later for the DocBuilder proxy block, then apply the ownership and proxy workarounds here. ZCS 10.1.22 is the current patch release, and it does not change the application packages relevant to these findings.

Upgrade to 10.1.22 for its own NGINX fixes:

# RHEL-based
yum install zimbra-proxy-patch
# Debian and Ubuntu
apt install zimbra-proxy-patch
su - zimbra -c "zmcontrol restart"

The release notes name the exact package lineup for each platform. Confirm the installed zimbra-proxy-patch version is 10.1.22.1795848496-1 or later before you treat the NGINX flaws as fixed.

Workarounds, in order of how much they reduce the document-service risk:

  1. If Document Editing is not required, disable it and confirm that /zdocument no longer responds. Verify that previously issued editor tokens can no longer reach the document handlers.
  2. If Document Editing is required, block the DocBuilder path before the catch-all OnlyOffice route: nginx location ~ ^/zdocument/[^/]+/(?i)docbuilder { return 403; }
  3. Remove public Briefcase shares you do not need. The anonymous chain needs one existing supported public document, so removing public access removes that starting point.
  4. Make the OnlyOffice program tree root-owned and not writable by zimbra, as ZCS 10.1.21 does. Do not run zmfixperms -e afterwards, because the extended repair restores service ownership of the program tree.
  5. For the stored cross-site scripting findings, no fixed release exists. Treat untrusted invitations and XML attachments as hostile, and plan to patch when Zimbra ships a release that covers them.

These workarounds narrow reach and block the demonstrated loader write. They do not bind the editor token to a command, so a future bypass of the proxy rules can reopen the bug.

What is the root cause?

The editor token proves only that Zimbra's shared secret signed it. It does not say which OnlyOffice operation the token may call, and it carries no audience, purpose or expiry. That single design choice underpins both document-service criticals.

Zimbra creates the token in DocumentServlet.encodeJwtToken after a user or guest opens an accessible document:

private String encodeJwtToken(OnlyOfficeConfig config) {
    String secret = this.getDocServerExtension().getJwtSecret();
    SecretKeySpec key = new SecretKeySpec(secret.getBytes(), SignatureAlgorithm.HS256.getJcaName());
    JwtBuilder builder = Jwts.builder();
    builder.claim("type", (Object)config.type);
    builder.claim("documentType", (Object)config.documentType);
    builder.claim("document", (Object)config.document);
    builder.claim("editorConfig", (Object)config.editorConfig);
    return builder.signWith(SignatureAlgorithm.HS256, (Key)key).compact();
}

OnlyOffice 7.2.1 uses the same secret for browser and inbox request tokens. Its tenant manager maps both secret types to one value:

switch (type) {
  case commonDefines.c_oAscSecretType.Browser:
  case commonDefines.c_oAscSecretType.Inbox:
    res = utils.getSecretByElem(cfgSecretInbox);
    break;
}

The request parser treats a valid signature as sufficient authorization. In server/DocService/sources/canvasservice.js, the /downloadas handler builds the command from the request, then verifies the token as a session token:

var strCmd = req.query['cmd'];
var cmd = new commonDefines.InputCommand(JSON.parse(strCmd));
let checkJwtRes = yield docsCoServer.checkJwt(ctx, cmd.getTokenSession(), commonDefines.c_oAscSecretType.Session);
if (checkJwtRes.decoded) {
    let decoded = checkJwtRes.decoded;
    var doc = checkJwtRes.decoded.document;
    cmd.setDocId(doc.key);
    cmd.setUserIndex(decoded.editorConfig && decoded.editorConfig.user && decoded.editorConfig.user.index);
}
cmd.setData(req.body);

The constructor keeps every attacker-supplied command field, including format, savetype, savekey and outputformat. The session branch rebinds only the document ID and the user index. The raw request body is attached before dispatch. With savetype=3, the complete-save path writes the body to the attacker-chosen format path.

The DocBuilder flaw follows the same pattern. The generic parser accepts the editor token as an inbox token, and the /docbuilder handler runs the submitted script. The script API includes CreateNativeZip, which reads, writes and deletes files with zimbra's permissions.

How is it exploited?

The public chain uses an existing public Briefcase document and needs no credentials.

  1. Open the public document and take the guest editor token that Zimbra issues for the editor session.
  2. Reserve a server-generated save key with a normal savetype=0 request to the /downloadas route.
  3. Send a malicious dynamic shared object (the libpthread.so.0 loaded in step 4) as the request body, with a cmd whose format points outside document storage, to the converter's library directory.
  4. Trigger an ordinary conversion. The converter loads the planted libpthread.so.0 from its own directory and runs the attacker's command as zimbra.
  5. Chain a local privilege escalation to reach root. Rapid7's public chain uses CVE-2026-93645, a filename handling flaw in the statistics monitor.

The request that writes the library has this shape, taken from the public write-up:

{
  "c": "save",
  "id": "ignored",
  "tokenSession": "<editor JWT>",
  "savekey": "<server-generated key>",
  "format": "/../../../../../../server/FileConverter/bin/libpthread.so.0",
  "savetype": 3,
  "saveindex": 1,
  "outputformat": 513,
  "withoutPassword": true
}

The public chain operator runs the whole path, including the local escalation, against a target with a known public document:

python3 pocs/chains/onlyoffice_guest_to_root.py \
  --target https://mail.lab.local \
  --public-doc L2WG7eWNQz-Isa27YWDXQY4yoKA9gkpYp4tvZGGuVDYBAAJ2Mg \
  --command 'id' \
  --insecure

Rapid7 reports that the chain returned uid=0(root) on its test installation. The DocBuilder route is a separate path to the same zimbra execution: submit a script to /zdocument/<server-id>/docbuilder?token=<editor-JWT>, plant the library with CreateNativeZip, and call builderJS.SaveFile().

How does the attack flow?

An unauthenticated visitor takes an editor token from a public document, abuses it as an OnlyOffice session or DocBuilder token, writes beside the converter and executes as zimbra.

flowchart LR A["Public Briefcase document"] --> B["Guest editor JWT"] B --> C["/downloadas accepts token as session"] C --> D["Unsigned save fields and body"] D --> E["Write libpthread.so.0 beside x2t"] E --> F["Conversion loads planted library"] F --> G["Command execution as zimbra"] G --> H["Local escalation to root"]

What can an attacker do?

An unauthenticated attacker with a reachable public document can execute commands as the zimbra account without victim interaction. The same account can read, write and delete any file that zimbra can reach, including mailbox data and configuration.

The document-service chain does not need the JWT secret, direct access to OnlyOffice port 7084, or a victim password. The anonymous route needs an existing supported public Briefcase document, either its public locator or its owner address, and a reachable /zdocument proxy. The authenticated route needs only an ordinary mailbox account with one supported document.

The chain reaches zimbra, not root, by itself. Rapid7's public operators add a local privilege escalation and report root on the tested hosts. Whether that escalation works depends on the installed roles and the host layout.

The stored cross-site scripting findings are separate from the document-service chain. An unauthenticated sender can execute script in a signed-in recipient's Zimbra origin, then read mailbox data and act as that user. These findings need the recipient to open the crafted message or attachment, and two of them need extra calendar or Zimlet features.

Why does the fix work?

ZCS 10.1.21 adds a proxy block for the DocBuilder path and changes ownership of the OnlyOffice program tree. The proxy block removes the demonstrated public route. The ownership change removes zimbra's write access to the converter directory.

The 10.1.21 proxy rule, retained in 10.1.22, is:

# Block direct access to the native docbuilder endpoint
location ~ ^/zdocument/[^/]+/(?i)docbuilder {
    return 403;
}

The package change in 10.1.21 is:

-if [ -f /opt/zimbra/onlyoffice/bin/process_id.json ]; then
-    chmod 775 /opt/zimbra/onlyoffice/bin/process_id.json
-    chown zimbra:zimbra /opt/zimbra/onlyoffice/bin/process_id.json
-fi
-
 if [ -d /opt/zimbra/onlyoffice ]; then
-    chown -R zimbra:zimbra /opt/zimbra/onlyoffice/
+    chown -R root:root /opt/zimbra/onlyoffice/
+    if [ -f /opt/zimbra/onlyoffice/bin/process_id.json ]; then
+        chmod 775 /opt/zimbra/onlyoffice/bin/process_id.json
+        chown zimbra:zimbra /opt/zimbra/onlyoffice/bin/process_id.json
+    fi
+    mkdir -p /opt/zimbra/onlyoffice/documentserver/App_Data/cache
+    chmod 755 /opt/zimbra/onlyoffice/documentserver/App_Data
+    chown -R zimbra:zimbra /opt/zimbra/onlyoffice/documentserver/App_Data/cache/
 fi

The fix is incomplete. The packaged docservice and x2t binaries are byte-identical between 10.1.20 and 10.1.21. The token checks still accept an editor token for the wrong operation.

The zmfixperms -e repair still contains a pass that gives onlyoffice back to zimbra. The loader write therefore returns on 10.1.21 and 10.1.22 after an extended repair. Rapid7 reports root on a vendor-upgraded 10.1.22 host where the converter directory remained writable.

How do I check if I was compromised?

Search the Zimbra access logs for OnlyOffice requests that carry traversal separators or target the DocBuilder route:

python3 detections/hunt_logs.py --kind onlyoffice \
  /opt/zimbra/log/nginx.access.log /opt/zimbra/log/nginx.access.log.gz

hunt_logs.py URL-decodes the request and parses the cmd JSON. It reports a traversal in the format field, a /downloadas request with a suspicious destination, and the public DocBuilder route. A hit is a lead, not proof: HTTP 200 does not show that a file was written or a command ran.

Check the converter directory for an unexpected library and for the actual ownership and permissions:

ls -l /opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin/
stat -c '%U %G %A %n' /opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin

An unexpected libpthread.so.0 there is strong evidence. The public PoCs remove the planted library after use, so its absence does not rule out earlier execution. Check the conversion cache under /opt/zimbra/onlyoffice/documentserver/App_Data/cache and the DocService and FileConverter logs for unusual jobs.

For the stored cross-site scripting findings, inspect saved messages and calendar content. Rapid7 publishes message and log inspectors in the same tracker, and the guides say which stored state can corroborate a hit.

Timeline

  • 2026-09-24: ZCS 10.1.21 is released with the DocBuilder proxy block and the OnlyOffice ownership change.
  • 2026-09-25: The CVE-2026-93643 record is published.
  • 2026-12-02: ZCS 10.1.22 is released with NGINX proxy fixes. Rapid7 publishes the remaining technical analyses, proof-of-concept code and attack chains.
  • 2026-12-03: CVE records for CVE-2026-93646, CVE-2026-93648, CVE-2026-137834 through CVE-2026-137857 are published.

Zimbra blocked the DocBuilder route in September and published the remaining findings in December
Figure 1: Zimbra's DocBuilder block, the first CVE record, the December release and the remaining CVE records. Source: Zimbra release notes, Rapid7 tracker and CVE records, checked December 3, 2026

FAQ

Is ZCS 10.1.22 fixed?

No. ZCS 10.1.22 fixes five NGINX proxy flaws, and its application packages are unchanged from 10.1.21 for these findings. The DocBuilder route is blocked, but the /downloadas write and the stored cross-site scripting findings remain.

Do I need a Zimbra account to exploit the document-service chain?

No, if a supported public Briefcase document exists and /zdocument is reachable. The anonymous route uses a guest editor token from that document. Without a public document, an ordinary mailbox account with one supported document is enough.

Is the flaw exploited in the wild?

No public report of exploitation is known, and the CVEs are not in CISA KEV as of 2026-12-03. Public proofs of concept exist, so the gap between disclosure and exploitation is short.

Does blocking /zdocument break document editing?

Yes. The route is the public proxy for the bundled OnlyOffice service. If users need document editing, block the DocBuilder path and remove public shares instead, and accept that the /downloadas write remains until Zimbra fixes the token authorization.

Is the same flaw present without OnlyOffice?

No. The document-service chain needs OnlyOffice Document Editing and the /zdocument proxy. A Zimbra server without that service does not expose these routes. The stored cross-site scripting findings affect the mail client independently.

References

  • Rapid7, "Untrusted Email to Browser Authority: Calendar Forgery and Stored XSS in Zimbra (Part 2)", 2026-12-02: https://www.rapid7.com/blog/post/ve-calendar-forgery-and-stored-xss-in-zimbra-part-2 (checked December 3, 2026)
  • Rapid7 Zimbra vulnerability tracker, technical write-ups, proofs of concept and patch analysis: https://github.com/jburgess-r7/zimbra-vulnerability-tracker (checked December 3, 2026)
  • CVE-2026-93643 record: https://www.cve.org/CVERecord?id=CVE-2026-93643 (checked December 3, 2026)
  • CVE-2026-93646 record: https://www.cve.org/CVERecord?id=CVE-2026-93646 (checked December 3, 2026)
  • CVE-2026-93648 record: https://www.cve.org/CVERecord?id=CVE-2026-93648 (checked December 3, 2026)
  • CVE-2026-137834 record: https://www.cve.org/CVERecord?id=CVE-2026-137834 (checked December 3, 2026)
  • Zimbra, "Zimbra Daffodil (v10.1.22) Patch Release", 2026-12-02: https://wiki.zimbra.com/wiki/Zimbra_Releases/10.1.22 (checked December 3, 2026)
  • Zimbra, "Zimbra Daffodil (v10.1.21) Patch Release", 2026-09-24: https://wiki.zimbra.com/wiki/Zimbra_Releases/10.1.21 (checked December 3, 2026)
  • Zimbra, patch installation guide: https://wiki.zimbra.com/wiki/Zimbra_Releases/10.1.0/patch_installation (checked December 3, 2026)
  • Zimbra, product page with the mailbox and customer figures: https://www.zimbra.com/ (checked December 3, 2026)
  • CISA KEV catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (catalog checked December 3, 2026)

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog