Vulnerabilities · 2021 · Onlyoffice
CVE-2021-25830
Onlyoffice Document Server vulnerability
A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.2.0.236-v5.6.4.13. An attacker must request the conversion of the crafted file from DOCT into DOCX format. Using the chain of two other bugs related to improper string handling, an attacker can achieve 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/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter. · Third Party Advisory
- github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter. · Third Party Advisory
- github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.cpp#L · Third Party Advisory
- github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25830 · Exploit
- github.com/ONLYOFFICE/DocumentServer
- github.com/ONLYOFFICE/core
- nvd.nist.gov/vuln/detail/CVE-2021-25830
- cve.org/CVERecord?id=CVE-2021-25830
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.