CVE-2021-3199: ONLYOFFICE Docs · Path traversal
Exploitation: In the wild · CVSS 9.8 Critical · Unauthenticated · Published 2021-01-22
Description
Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT is used, via a /.. sequence in an image upload parameter.
Enclave's analysis
Path traversal in the /upload endpoint of ONLYOFFICE Document Server before 5.6.3. A /.. sequence in an image upload parameter leads to remote code execution when JWT is used. No login or user interaction is needed. A public PoC exists, and CISA added it to KEV in October 2026 with active exploitation. Upgrade to 5.6.3 or later and check exposed instances for compromise.
Fix
Upgrade to 5.6.3.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| ONLYOFFICE Document Server (Docs) | all versions before 5.6.3 (OSV lists releases from 2.5 through 5.6.2) | 5.6.3 |