Introduction
A signed token meant only to let someone edit a single document in Zimbra turns out to be enough to plant and run an arbitrary DocBuilder script on the server. In the unauthenticated case, the attacker never needs a mailbox account at all. For deployments running the OnlyOffice integration with a public Briefcase document, that chain reaches command execution as the zimbra service account with no victim interaction.
CVE-2026-93646 affects the OnlyOffice integration of Zimbra Collaboration Suite (ZCS), the enterprise email and collaboration platform from Synacor that bundles email, calendars, contacts, tasks and file sharing. Rapid7 assigned it a CVSS 3.1 score of 9.8 with the vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The flaw was disclosed on December 3, 2026 and credited to Rapid7 researcher Jonah Burgess (CryptoCat).
Technical Information
The issue is classified as CWE-863, incorrect authorization. The service accepts an editor session JSON Web Token using a shared signing key without checking whether that token actually grants access to DocBuilder. Because of that missing check, the editor token can authorize an arbitrary DocBuilder script.
Root cause
Zimbra's DocumentServlet.java issues an HS256 editor JWT after any user, or guest, opens an accessible document. The problem is in the shape of the token: it carries only editor session claims (type, documentType, document, editorConfig), with no audience, route, purpose, capability, issue time, or expiry. Nothing in the token scopes it to the editor session it was minted for.
OnlyOffice 7.2.1 compounds this. In tenantManager.js it uses the same signing secret for both the Browser and Inbox token types, so a Zimbra editor token validates cleanly as an inbox request token. The generic request parser (getRequestParams/checkJwt) treats a valid signature as sufficient authorization. The public /docbuilder handler, reachable through the proxy catch-all /zdocument/<server-id>/docbuilder, then stores the attacker supplied request body as a trusted DocBuilder script:
storageBase.putObject(ctx, docId + '/script.docbuilder', req.body, ...)
From script to native file access
The DocBuilder runtime exposes CreateNativeZip(), registered in Default.h. Its open(), addFile(), getFile() and removeFile() methods read, write and delete host files with the zimbra account's OS permissions. That is the native file API surface the advisory refers to, and it is what turns a stored script into file system access.
Exploit chain to RCE as zimbra
The PoC plants a previously absent, ABI compatible libpthread.so.0 into the x2t converter's bin directory at /opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin. Because x2t carries DT_NEEDED: libpthread.so.0 and DT_RPATH: $ORIGIN:$ORIGIN/system, and DocBuilder launches it with LD_LIBRARY_PATH set to the converter directory first, calling builderJS.SaveFile("docx", ...) loads the planted shared object. Its constructor runs the attacker command as the zimbra service account (uid/gid 999). The record does not claim the resulting commands run as root; execution reaches the zimbra account, not root.
Two access paths
Rapid7 describes two ways to obtain the token that drives the chain:
- An unauthenticated attacker can obtain a guest editor JWT from an existing supported public Briefcase document. This is the path that drives the 9.8 Critical rating and the no privileges, no user interaction vector.
- An ordinary mailbox user can obtain one from an accessible document.
The public request shape is straightforward:
POST /zdocument/<server-id>/docbuilder?token=<editor-JWT> HTTP/1.1 Host: mail.lab.local Content-Type: application/octet-stream <DocBuilder JavaScript>
Proof of Concept
A working, publicly available proof of concept exists in the jburgess-r7/zimbra-vulnerability-tracker GitHub repository, published by Jonah Burgess. It was confirmed against ZCS 10.1.16 and 10.1.20 Network Edition with OnlyOffice 7.2.1 build 0 on x86-64, with OnlyOffice/Document Editing enabled.
The core of the submitted DocBuilder script writes the loader DSO into the converter bin directory and triggers a conversion, then cleans up:
var zBin = CreateNativeZip(); var zTmp = CreateNativeZip(); try { zBin.open("/opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin"); zTmp.open("/opt/zimbra/data/tmp"); var dsoPayload = fromHex("<generated DSO bytes>"); if (!zBin.addFile("libpthread.so.0", dsoPayload)) throw new Error("DSO write was rejected"); var triggerResult = builderJS.SaveFile("docx", "command_trigger.docx", ""); if (triggerResult !== 0) throw new Error("trigger conversion returned " + String(triggerResult)); } finally { // remove the DSO and result files and verify deletion }
Two Python PoCs ship under pocs/CVE-2026-93646/:
onlyoffice_guest_docbuilder_rce.pyis fully anonymous and drives the 9.8 score. It discovers or accepts an existing supported public Briefcase document, fetches a guest editor JWT from/service/extension/doc/<encoded-id>(validating that the token'seditorConfig.user.idequals the public guest ZID99999999-9999-9999-9999-999999999999), compiles an x86-64 loader DSO, submits the DocBuilder script, and recovers stdout/stderr via a generated DOCX. The--public-owneroption enumerates a single mailbox's public item metadata (/home/<owner>/?fmt=xml&list=...) to build the encoded shared ID (item UUID + account UUID +\x01\x00\x02v2, urlsafe-b64) without creating any share.
python3 pocs/CVE-2026-93646/onlyoffice_guest_docbuilder_rce.py \ --target https://mail.lab.local --public-owner [email protected] \ --scan-max 10000 --command 'id' --insecure
onlyoffice_editor_jwt_docbuilder_rce.pycovers the ordinary mailbox user path (rated 8.8 High). It uploads one temporary DOCX to the attacker's own Briefcase, obtains that document's editor JWT, submits the DocBuilder script without a mailbox cookie, then deletes the temp document and ends its session. It also provides the shared helpers imported by the guest PoC (build_script,compile_dso,normalize_target,recover_result,submit_builder,MAX_COMMAND_BYTES,TMP_DIR).
python3 pocs/CVE-2026-93646/onlyoffice_editor_jwt_docbuilder_rce.py \ --target https://mail.lab.local --username [email protected] \ --password '<mailbox-password>' --command 'id' --insecure
The documented successful result on ZCS 10.1.20, for both routes:
[+] command executed as zimbra (exit=0) uid=999(zimbra) gid=999(zimbra) groups=999(zimbra),5(tty),998(postfix)
The PoCs verify execution by returning command output through a uniquely named, publicly retrievable DOCX. An HTTP 200 or end:true alone is not treated as proof. Commands are bound to a 20 second limit, and the planted library and temporary files are cleaned up afterward. No JWT secret, OnlyOffice port 7084 access, victim password (for the anonymous route), or victim interaction is required.
Detection Methods
According to the researcher's tracker, an attack leaves evidence in three places: the public HTTP route it uses, a file it plants on disk, and processes started under the OnlyOffice converter. There is no public Sigma, YARA, Snort or Suricata signature for this CVE, so the available detection material is the researcher's log hunter, the route regex it contains, and the host indicators below. All of them need analyst correlation before you declare a compromise.
Access log hunting for the DocBuilder route
The tracker includes detections/hunt_logs.py, a log hunter that handles plain and gzip compressed logs and has an onlyoffice mode for NGINX access logs:
python3 detections/hunt_logs.py --kind onlyoffice evidence/nginx.access.log evidence/nginx.access.log.gz
Internally it URL decodes each request path and applies case insensitive regular expressions:
if re.search(r"/zdocument/[^/]+/docbuilder(?:/|$)", path, re.I): out.append(dict(base, event="onlyoffice_docbuilder", cves=["CVE-2026-93646"])) printfile = re.search(r"(/zdocument/[^/]+/printfile)/([^/]+)(?:/|$)", path, re.I)
The first match produces an onlyoffice_docbuilder event, the exploit's entry point. The second produces an onlyoffice_printfile event with the job_id and HTTP status, which lets you link a DocBuilder submission to the later download of its result. That matters because the published PoCs return command output inside a generated DOCX rather than as plain text. Output is JSON Lines with the file, line number, method, path and HTTP status, and the tool deliberately leaves editor JWTs and token bearing query strings out of its output to make results safer to share.
Matching is case insensitive for a reason: the vendor's proxy fix uses a case insensitive (?i)docbuilder pattern. If you build your own SIEM query, normalise case and URL decode the path first, otherwise variants such as /DocBuilder will slip past.
How to read a hit
The guide stresses that a DocBuilder hit is a lead, not proof of compromise. It warns that an HTTP 200 does not prove a file was written or a command ran, and the advisory makes the same point about end:true with an empty URL map. To confirm a hit, work out which document or editor session the token came from, check whether conversion activity and a /printfile/<job-id> retrieval followed, and look for the host artifacts below.
You can also predict what precedes a hit. On the anonymous route, the attacker gets a guest editor JWT by opening a public Briefcase document at /service/extension/doc/<identifier>, and the --public-owner mode's metadata search may appear as clustered requests just before the DocBuilder POST. On the authenticated route, watch for a short lived Briefcase upload followed closely by a DocBuilder request. On proxies that block the route, an ordinary editor JWT gets HTTP 403, so a docbuilder hit returning 403 is a blocked attempt while a non-403 response means the request reached DocService. Note that the parser cannot recover a request body or query string that the deployed logging configuration did not retain, so default NGINX logs will not contain the submitted script itself.
Filesystem indicator: the planted converter library
Both documented execution routes create this previously absent file:
/opt/zimbra/onlyoffice/documentserver/server/FileConverter/bin/libpthread.so.0
If you find an unexpected file at that path, preserve its ownership, timestamps and hash. The file does not need its executable bit set to be loaded, so filtering on executable permission will miss it. File integrity monitoring on the FileConverter/bin directory is worthwhile because nothing legitimate should create new libraries there. Check the directory's actual ownership and write permissions rather than trusting the ZCS version, since extended permission repair can make the program tree writable by the service account again even on 10.1.21 and 10.1.22. The exploit also opens /opt/zimbra/data/tmp for temporary command output files, so check that directory for recently created or deleted files that line up in time.
Absence of the library does not clear a host
The PoCs delete the planted library and their temporary output files after running. The DocBuilder task and its cached result document stay until OnlyOffice's normal expiry. DocBuilder gives each accepted task a bld_* key; before routine cleanup removes it, inspect and preserve the conversion cache at:
/opt/zimbra/onlyoffice/documentserver/App_Data/cache
Review the DocService and FileConverter logs alongside the cache.
Process telemetry
The command runs when x2t loads the planted library's constructor. The guide calls an unexpected shell or command launched under x2t particularly useful corroboration. In EDR or auditd process execution data, alert on any child process of x2t running as zimbra other than normal conversion work. The PoCs stop commands that run longer than 20 seconds, so expect short lived child processes rather than a persistent reverse shell. After compromise, use the tracker's separate host level hunts for escalation from zimbra to root.
Affected Systems and Versions
ZCS 10.1.16 through 10.1.20 are affected, specifically Network Edition deployments where the OnlyOffice/Document Editing integration is enabled. The flaw was confirmed against ZCS 10.1.16 and 10.1.20 with OnlyOffice 7.2.1 build 0 on x86-64.
ZCS 10.1.21 blocks the demonstrated public DocBuilder route and hardens the converter directory. The 10.1.21 fix adds an nginx block (location ~ ^/zdocument/[^/]+/(?i)docbuilder { return 403; }) and makes the OnlyOffice tree root owned. The underlying DocService authorization code is byte identical between 10.1.20 and 10.1.21, so the fix removes public reachability rather than binding tokens to operations.
Vendor Security History
Zimbra has a documented history of vulnerabilities targeted in attacks. CISA added the separate Zimbra command injection flaw CVE-2026-73570 to its known exploited catalog in August 2026, and Zimbra issued the 10.1.21 security release in September 2026. Separately, a US government bulletin attributes attacks against the distinct Zimbra flaw CVE-2025-66376 to the Russian state supported group LAUNDRY BEAR. These facts provide context only and do not establish exploitation of CVE-2026-93646 or, by themselves, measure the vendor's overall security performance.
References
- NVD: CVE-2026-93646
- CVE Record: CVE-2026-93646
- OffSeq Threat Radar: CVE-2026-93646
- CVEfeed: CVE-2026-93646
- Rapid7 zimbra-vulnerability-tracker (GitHub)
- CVE-2026-93646 advisory (tracker)
- Anonymous guest DocBuilder RCE PoC
- Editor JWT DocBuilder RCE PoC
- Detection guide: document_service.md
- Log hunter: hunt_logs.py
- Zimbra Releases/10.1.21 Tech Center
- Zimbra Product Datasheet
- Zimbra FAQs
- CISA Adds One Known Exploited Vulnerability to Catalog
- CISA/NSA Joint Advisory on Russian State-Supported Phishing Targeting Zimbra
- Rapid7: Calendar Forgery and Stored XSS in Zimbra (Part 2)



