Vulnerabilities · 2021 · Onlyoffice
CVE-2021-25833
Onlyoffice Document Server vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Document Server. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Onlyoffice Document Server runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ONLYOFFICE/DocumentServer · Vendor Advisory
- github.com/ONLYOFFICE/server/blob/v5.6.0.21/DocService/sources/converterservice.js#L200 · Third Party Advisory
- github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L283 · Third Party Advisory
- github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L593 · Third Party Advisory
- github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25833 · Exploit
- github.com/ONLYOFFICE/server
- nvd.nist.gov/vuln/detail/CVE-2021-25833
- cve.org/CVERecord?id=CVE-2021-25833
More vulnerabilities in Onlyoffice products
CVE-2025-68936CVE-2025-68935CVE-2024-44085CVE-2023-50883CVE-2023-46988CVE-2023-34939CVE-2023-30188CVE-2023-30187All 31
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.