CVE-2021-3199: Path Traversal to Remote Code Execution in ONLYOFFICE Document Server
- Vendor
- Onlyoffice
CVE-2021-3199 is a directory traversal vulnerability in the image-upload functionality of ONLYOFFICE Document Server before version 5.6.3, with versions 5.1.5 through 5.6.2 specifically identified as affected. When JWT is used, parent-directory traversal sequences in an image-upload parameter allow attacker-controlled files to be written outside the intended upload directory. Arbitrary file writes or overwrites can lead to remote code execution by replacing executable components or placing executable server-side content. Public exploits use JWT-signed requests; deployments with default or weak signing secrets are particularly exposed.
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 escalate to remote code execution. Code execution can compromise data accessible to the service, enable persistent remote access, and disrupt document-processing services. The reachable filesystem locations and resulting impact depend on the service account's permissions and how the written files are subsequently used.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, remove direct Internet access to Document Server and restrict connections to the integrated platform or an authorized reverse proxy. Limit access to the upload functionality to trusted clients and configure a WAF or reverse proxy to reject traversal sequences and encoded equivalents in upload requests. Replace default or weak JWT signing secrets with strong, unique secrets; this reduces exposure to forged requests but does not correct the path traversal flaw. Review upload logs, unexpected file changes, unusual child processes of ONLYOFFICE services, and abnormal 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 deployments and Document Server components integrated with ONLYOFFICE Workspace, Nextcloud, ownCloud, or other platforms. Confirm the running instance has been updated. Investigate potentially exposed systems for unauthorized file modifications and established access; patching 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 18, 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 18, 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 deployments and Document Server components integrated with ONLYOFFICE Workspace, Nextcloud, ownCloud, or other platforms.
- 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 88.1% (100th percentile) as of Nov 18, 2026.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.