CVE-2021-3199: Path Traversal Leading to RCE in ONLYOFFICE Document Server
- Vendor
- Onlyoffice
CVE-2021-3199 is a path traversal vulnerability in the image-upload handler of ONLYOFFICE Document Server before version 5.6.3, including identified affected versions 5.1.5 through 5.6.2. When JWT is used, parent-directory traversal sequences in an image-upload parameter allow attacker-controlled data to be written outside the intended upload directory. Arbitrary file creation or overwrite can lead to remote code execution when executable server components or web-accessible executable files can be modified. Public exploitation techniques use JWT-signed requests; deployments retaining a default or otherwise compromised signing secret permit exploitation without legitimate application credentials. The vulnerability has been exploited in the wild and is included in CISA's Known Exploited Vulnerabilities catalog.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises filesystem integrity through unauthorized file creation or overwrite and can lead to arbitrary code execution with the privileges of the affected server process. Resulting server compromise can expose accessible documents, configuration data, and credentials, enable installation of persistent access mechanisms, or disrupt document-processing services. The extent of compromise depends on filesystem permissions and the resources accessible to the service account; elevated operating-system privileges are not inherently established by this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading is possible, remove direct Internet access to Document Server and restrict connections to the integrated platform, an authorized reverse proxy, or trusted clients. Configure a WAF or reverse proxy to reject upload requests containing directory-traversal sequences and encoded equivalents. Replace default or weak JWT signing secrets with strong, unique values; this reduces opportunities to forge requests but does not correct the path traversal flaw. Monitor upload logs, unexpected file changes, unusual child processes of ONLYOFFICE services, and anomalous outbound connections.
Remediation
Patch, then assume compromise.
Upgrade ONLYOFFICE Document Server to version 5.6.3 or later, preferably a currently supported stable release because the 5.x branch is unsupported. Assess standalone installations, container images, self-hosted Workspace deployments, and integrations such as Nextcloud or ownCloud according to their installed Document Server version. Verify that running instances have actually been upgraded. Investigate potentially exposed systems for unauthorized file modifications and code execution: patching prevents further exploitation through this flaw but does not remove an existing compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-3199 exploited in the wild?
- Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 8, 2026.
- Is there a public exploit for CVE-2021-3199?
- Yes. As of Nov 17, 2026, Mallory has reports of a public exploit for CVE-2021-3199.
- Is there a patch for CVE-2021-3199?
- Upgrade ONLYOFFICE Document Server to version 5.6.3 or later, preferably a currently supported stable release because the 5.x branch is unsupported. Assess standalone installations, container images, self-hosted Workspace deployments, and integrations such as Nextcloud or ownCloud according to their installed Document Server version.
- What products are affected by CVE-2021-3199?
- Onlyoffice Document Server.
- How severe is CVE-2021-3199?
- CVE-2021-3199 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 30.2% (98th percentile) as of Nov 17, 2026.
Recent activity
36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.