Vulnerabilities · 2021 · Onlyoffice
CVE-2021-25831
Onlyoffice Document Server vulnerability
A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.3. An attacker must request the conversion of the crafted file from PPTT into PPTX format. Using the chain of two other bugs related to improper string handling, 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/core · Vendor Advisory
- github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter. · Vendor Advisory
- github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter. · Vendor Advisory
- github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/PPTXFormat/Logic/Fills/BlipFil · Vendor Advisory
- github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25831 · Exploit
- github.com/ONLYOFFICE/DocumentServer
- nvd.nist.gov/vuln/detail/CVE-2021-25831
- cve.org/CVERecord?id=CVE-2021-25831
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.