Public sources describe a path traversal flaw in ONLYOFFICE Document Server before 5.6.3 that can lead to remote code execution. CISA lists CVE-2021-3199 as exploited.
What is affected
The sources list CVE-2021-3199 as a path traversal vulnerability (CWE-22) in ONLYOFFICE Docs, which the vulnerability description calls ONLYOFFICE Document Server. The affected version range given is < 5.6.3, meaning the versions before 5.6.3. The description states that the issue occurs when JWT is used. The vulnerability was disclosed on 2021-01-26.
If you run a Document Server, either on its own or as part of a larger system that integrates it, check which version is installed. Pinet has not analysed or tested this vulnerability. This advisory summarises public sources, including the NVD entry for CVE-2021-3199.
What the flaw allows
According to the description, a specially crafted value in an image upload parameter of the upload function can contain a directory traversal sequence. This leads to path traversal with remote code execution on the server.
The CVSS 3.1 base score is 9.8, which is critical. The vector shows that the flaw can be reached over the network, with low attack complexity, without privileges and without user interaction, and that the impact on confidentiality, integrity and availability is rated high. In practical terms, a successful attack could allow code to run on the affected server and put the documents and data it handles at risk.
Exploitation
CISA lists this vulnerability as exploited. It was added to the CISA Known Exploited Vulnerabilities catalogue on 2026-10-08. CISA's stated deadline for US federal agencies to act is 2026-10-11. That deadline applies to federal agencies, but other organisations may use it as a reference point for their own planning.
CISA records whether the vulnerability is known to be used in ransomware campaigns as unknown. The sources provided do not describe how the exploitation takes place, and this advisory does not add any such detail.
What to do
First, find out whether you run ONLYOFFICE Docs or ONLYOFFICE Document Server and which version is installed. Versions before 5.6.3 are in the affected range. The vendor's ONLYOFFICE changelog and advisory material list the fixed releases, so use them to choose the release to move to.
CISA's required action is to apply mitigations in accordance with the vendor's instructions, or to discontinue use of the product if mitigations are unavailable. CISA also states that each asset's internet exposure should be evaluated. If you need help assessing your installations, contact your usual Pinet representative.
What to do
Check whether you run ONLYOFFICE Docs (Document Server) in a version below 5.6.3, and apply the vendor's fix. The ONLYOFFICE changelog lists the fixed releases. CISA's required action is to apply mitigations following the vendor's instructions, or to stop using the product if none are available. See the CISA Known Exploited Vulnerabilities catalogue for details.
Sources
- https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563
- https://nvd.nist.gov/vuln/detail/CVE-2021-3199
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog