CVE-2021-25833: ONLYOFFICE DocumentServer - Unrestricted File Upload
- Cve: CVE-2021-25833
- Name: ONLYOFFICE DocumentServer - Unrestricted File Upload
- Description: A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21. The file extension is controlled by an attacker through the request data and leads to arbitrary file overwriting. Using this vulnerability, a remote attacker can obtain remote code execution on DocumentServer.
- Impact: Remote attackers can overwrite arbitrary files and execute remote code on the server.
- Remediation: Update to the latest version of ONLYOFFICE DocumentServer that addresses this vulnerability.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: file_system_write, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.43534
- Epss percentile: 0.98771
- Assignee: [email protected]
- Published at: 2021-03-01T16:15:14Z
- Age in days: 2094
- Modified at: 2026-06-17T03:42:29Z
- Public exploits total: 1
- References total: 6
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25833
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25833 | nvd | 2021-03-01 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/ONLYOFFICE/DocumentServer | Product, Vendor Advisory |
| https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25833 | Exploit, Third Party Advisory |
| https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/DocService/sources/converterservice.js#L200 | Third Party Advisory |
| https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L283 | Third Party Advisory |
| https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L593 | Third Party Advisory |
| https://github.com/ONLYOFFICE/server | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| onlyoffice:document_server | >= 4.2.0.71, <= 5.6.0.21 | no | nvd | /v1/products/onlyoffice/document_server |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-03-01
- Remote: yes
- Exposed hosts: 22858
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports