CVE-2021-3199
ONLYOFFICE Docs Server Path Traversal Vulnerability
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.
- CVSS 3.1
- 9.8
- Exploit probability
- 88%
- Known exploited
- Yes
- Published
- 26 Jan 2021
Exploited in the wild
Confirmed exploitation of ONLYOFFICE Docs, added to the known-exploited catalogue on 8 Oct 2026.
- Fix by
- 11 Oct 2026
- Used in ransomware campaigns
- Not known
- Required action
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Scores
Severity from the official assessment; exploit probability is the chance of exploitation activity in the next 30 days.
- Severity
- Critical
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Exploit probability
- 88%, in the top 1% of CVEs
- Weakness
- CWE-22
- Status
- Analyzed, last modified 9 Oct 2026
Affected software
Products and version ranges listed as vulnerable.
| Product | Versions |
|---|---|
| onlyoffice document server | before 5.6.3 |
References
Advisories, patches and write-ups. Links leave Tohou.
- https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563Release Notes · Third Party Advisory
- https://github.com/moehw/poc_exploits/tree/master/CVE-2021-3199/poc_uploadImageFile.pyExploit · Third Party Advisory
- https://github.com/nola-milkin/poc_exploits/blob/master/CVE-2021-3199/poc_uploadImageFile.pyExploit · Third Party Advisory
- https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563Release Notes · Third Party Advisory
- https://github.com/moehw/poc_exploits/tree/master/CVE-2021-3199/poc_uploadImageFile.pyExploit · Third Party Advisory
- https://github.com/nola-milkin/poc_exploits/blob/master/CVE-2021-3199/poc_uploadImageFile.pyExploit · Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3199US Government Resource
Is CVE-2021-3199 on your attack surface?
Sonar records the software running on your assets and alerts you when a new CVE matches it, without waiting for the next scan.
From public vulnerability feeds, refreshed every 12 hours. As JSON: https://api.tohou.io/v1/cves/CVE-2021-3199 (needs a Tohou API key; free accounts included). Exploit probability is the EPSS score. This product uses data from the NVD API but is not endorsed or certified by the NVD.