Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-3199: Path Traversal Leading to RCE in ONLYOFFICE Document Server

Published Jan 22, 2021 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days6 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS30.2%98th percentile
CISA KEVYesAdded Oct 8, 2026
In the wildActivePer CISA KEV
Vendor
Onlyoffice
IdentifiersCVE-2021-3199CWE-22 · Improper Limitation of a Pathname…

CVE-2021-3199 is a path traversal vulnerability in the image-upload handler of ONLYOFFICE Document Server before version 5.6.3, including identified affected versions 5.1.5 through 5.6.2. When JWT is used, parent-directory traversal sequences in an image-upload parameter allow attacker-controlled data to be written outside the intended upload directory. Arbitrary file creation or overwrite can lead to remote code execution when executable server components or web-accessible executable files can be modified. Public exploitation techniques use JWT-signed requests; deployments retaining a default or otherwise compromised signing secret permit exploitation without legitimate application credentials. The vulnerability has been exploited in the wild and is included in CISA's Known Exploited Vulnerabilities catalog.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises filesystem integrity through unauthorized file creation or overwrite and can lead to arbitrary code execution with the privileges of the affected server process. Resulting server compromise can expose accessible documents, configuration data, and credentials, enable installation of persistent access mechanisms, or disrupt document-processing services. The extent of compromise depends on filesystem permissions and the resources accessible to the service account; elevated operating-system privileges are not inherently established by this vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Until upgrading is possible, remove direct Internet access to Document Server and restrict connections to the integrated platform, an authorized reverse proxy, or trusted clients. Configure a WAF or reverse proxy to reject upload requests containing directory-traversal sequences and encoded equivalents. Replace default or weak JWT signing secrets with strong, unique values; this reduces opportunities to forge requests but does not correct the path traversal flaw. Monitor upload logs, unexpected file changes, unusual child processes of ONLYOFFICE services, and anomalous outbound connections.

Remediation

Patch, then assume compromise.

Upgrade ONLYOFFICE Document Server to version 5.6.3 or later, preferably a currently supported stable release because the 5.x branch is unsupported. Assess standalone installations, container images, self-hosted Workspace deployments, and integrations such as Nextcloud or ownCloud according to their installed Document Server version. Verify that running instances have actually been upgraded. Investigate potentially exposed systems for unauthorized file modifications and code execution: patching prevents further exploitation through this flaw but does not remove an existing compromise.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
OnlyofficeDocument Serverapplication
FAQ

Frequently asked questions

Is CVE-2021-3199 exploited in the wild?
Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 8, 2026.
Is there a public exploit for CVE-2021-3199?
Yes. As of Nov 17, 2026, Mallory has reports of a public exploit for CVE-2021-3199.
Is there a patch for CVE-2021-3199?
Upgrade ONLYOFFICE Document Server to version 5.6.3 or later, preferably a currently supported stable release because the 5.x branch is unsupported. Assess standalone installations, container images, self-hosted Workspace deployments, and integrations such as Nextcloud or ownCloud according to their installed Document Server version.
What products are affected by CVE-2021-3199?
Onlyoffice Document Server.
How severe is CVE-2021-3199?
CVE-2021-3199 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 30.2% (98th percentile) as of Nov 17, 2026.
Activity feed

Recent activity

36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
nuclei templates pull requestsNews · Nov 17, 2026Create [KEV] CVE-2021-3199.yaml - ONLYOFFICE Document Server 5.1.5 - 5.6.2 - Path Traversal by Akokonunes · Pull Request #17894 · projectdiscovery/nuclei-templatesA path traversal vulnerability affecting ONLYOFFICE Document Server versions 5.1.5–5.6.2. The pull request proposes a Nuclei template for the vulnerability and labels it KEV, indicating known exploitation, but provides no exploitation details.Read more ↗malware newsNews · Nov 6, 2026October 2026 CVE Landscape - Malware Analysis - Malware Analysis, News and IndicatorsAn ONLYOFFICE Docs vulnerability identified as enabling remote code execution and reported as actively exploited in October 2026.Read more ↗nuclei templates pull requestsNews · Nov 2, 2026Add CVE-2021-3199 - ONLYOFFICE Document Server < 5.6.3 Path Traversal to Arbitrary File Write by Ayham970 · Pull Request #17641 · projectdiscovery/nuclei-templatesA path traversal vulnerability in ONLYOFFICE Document Server versions before 5.6.3 permits unauthenticated arbitrary file writes through the /upload endpoint when JWT is enabled with the default secret. The content demonstrates a Nuclei template writing a randomly named file inside the server cache directory without overwriting existing files and detecting traversal through the upload response. It identifies the vulnerability as listed in CISA's Known Exploited Vulnerabilities catalog.Read more ↗safebreach blogNews · Oct 29, 2026Old CVEs, New Breaches: Why CTEM Matters in 2026 | SafeBreachA path traversal vulnerability in ONLYOFFICE Docs Server. The article reports its addition to CISA's KEV catalog on October 8, 2026, and ongoing exploitation despite patches having been available for years.Read more ↗
+12 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence8Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity18Community discussion across Reddit, Mastodon, and other social sources.