What is CVE-2021-3199?
ONLYOFFICE Docs contains a path traversal vulnerability that can occur when JWT is used, via a /.. sequence in an image upload parameter and could allow for remote code execution.
CISA added this issue to its exploited-vulnerability catalog on 2026-10-08. This is the catalog date, not this article’s publication date.
Sources: CISA Known Exploited Vulnerabilities catalog, CVE-2021-3199 — NVD, CVE-2021-3199 — CVE Program record
First, confirm where the vulnerable product is running
CVE-2021-3199 is a directory traversal vulnerability in ONLYOFFICE Document Server (Docs) versions prior to 5.6.3. When JWT authentication is enabled, a crafted "/.." sequence in an image upload parameter can lead to remote code execution via the /upload endpoint. Public proof-of-concept exploits exist. The vendor addressed this in the 5.6.3 release. No fixed version is confirmed by the supplied catalog entry; verify the vendor advisory. This vulnerability applies to customer-managed ONLYOFFICE Docs deployments. Applicability to managed cloud services (e.g., SaaS offerings) is not established by the sources. Do not assume vendor-supported cloud images, Kubernetes deployments, or appliance package formats. For vendor appliances, use the vendor-supported upgrade path; do not install host agents or alter the base OS without explicit vendor support.
The named vulnerable product is ONLYOFFICE Docs. Deployment on a cloud platform does not by itself establish that a managed AWS, Azure or GCP service is vulnerable. Confirm the product, version, vendor-supported deployment and remediation owner.
Vendor remediation comes first
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Use the current vendor advisory for affected versions and fixed builds. This catalog entry does not establish a universal fixed version or a cloud-specific hotfix.
Sources: CISA Known Exploited Vulnerabilities catalog, CVE-2021-3199 — NVD
AWS: remediation and deployment checks
Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.
- Identify EC2 instances, ECS tasks, or EKS pods running customer-managed ONLYOFFICE Docs; confirm version is 5.6.3 or later via the vendor's health/version endpoint or container image tag.
- If using AWS Marketplace or Community AMIs for ONLYOFFICE, check the publisher's release notes for a patched image; do not assume AWS Systems Manager Patch Manager can update this application.
- Review security groups and ALB/WAF rules to restrict /upload endpoint exposure to trusted networks while upgrading.
- After upgrade, verify the JWT secret is rotated and that upload functionality works only for authorized clients.
Sources: AWS Systems Manager Patch Manager
Azure: remediation and deployment checks
Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.
- Inventory Azure VMs, Container Instances, or AKS pods running customer-managed ONLYOFFICE Docs; verify version >= 5.6.3 via the application's version endpoint or image digest.
- If deployed via Azure Marketplace, consult the publisher's advisory for a patched offer; Azure Update Manager does not patch third-party applications inside VMs or containers.
- Apply network restrictions (NSG, Application Gateway WAF) to limit access to the /upload endpoint during remediation.
- Confirm post-upgrade that the JWT configuration is valid and that the traversal payloads are rejected.
Sources: Azure Update Manager overview
GCP: remediation and deployment checks
Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.
- List Compute Engine VMs, GKE pods, or Cloud Run services running customer-managed ONLYOFFICE Docs; check version against 5.6.3 using the vendor's version API or container metadata.
- For Marketplace solutions, rely on the vendor's updated deployment artifact; VM Manager Patch does not update application-layer software inside containers or VMs.
- Use VPC firewall rules or Cloud Armor to restrict the /upload path to trusted IPs until the upgrade is complete.
- Validate that the upgraded instance rejects directory traversal sequences in upload parameters and that JWT authentication functions correctly.
How to verify the fix
- Query the ONLYOFFICE Docs health/version endpoint (e.g., /healthcheck or /version) and confirm the reported version is 5.6.3 or newer.
- Attempt a test upload with a filename containing "/../" sequences; the request should be rejected with an error, not stored or executed.
- Review application logs for any prior upload anomalies indicating exploitation before the patch.
- Ensure the JWT secret used for document signing has been rotated after the upgrade.
Questions teams ask
What version of ONLYOFFICE Docs fixes CVE-2021-3199?
The vendor changelog indicates version 5.6.3 addresses this vulnerability. The supplied catalog entry does not confirm a fixed version; verify with the official ONLYOFFICE advisory.
Does this vulnerability affect ONLYOFFICE's managed cloud offering?
Applicability to managed cloud services is not established by the sources. Contact ONLYOFFICE for their SaaS remediation status.
Can I use my cloud provider's patch manager to fix this?
Cloud provider patch managers (AWS Systems Manager Patch Manager, Azure Update Manager, GCP VM Manager Patch) operate on OS-level packages. They do not update application-layer software like ONLYOFFICE Docs running in containers or as standalone binaries. Use the vendor-supported upgrade path.
Is rotating the JWT secret sufficient mitigation without upgrading?
No. The vulnerability is in the upload parameter handling when JWT is used. Rotating the secret does not fix the path traversal code path. Upgrade to 5.6.3 or later is required.
Sources & further reading
- CISA Known Exploited Vulnerabilities catalog
- Source catalog snapshot
- CVE-2021-3199 — NVD
- CVE-2021-3199 — CVE Program record
- Referenced advisory — github.com
- Referenced advisory — www.cisa.gov
- Referenced advisory — www.cisa.gov
- CVE record reference — github.com
- CVE record reference — github.com
- AWS Systems Manager Patch Manager
- Azure Update Manager overview
- Google Cloud VM Manager — About Patch
This brief summarizes public source material. Confirm affected versions and the current vendor instructions before changing production. No original exploit validation is claimed.