Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-3199: Path Traversal to Remote Code Execution in ONLYOFFICE Document Server

Published Jan 22, 2021 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days7 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS88.1%100th 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 directory traversal vulnerability in the image-upload functionality of ONLYOFFICE Document Server before version 5.6.3, with versions 5.1.5 through 5.6.2 specifically identified as affected. When JWT is used, parent-directory traversal sequences in an image-upload parameter allow attacker-controlled files to be written outside the intended upload directory. Arbitrary file writes or overwrites can lead to remote code execution by replacing executable components or placing executable server-side content. Public exploits use JWT-signed requests; deployments with default or weak signing secrets are particularly exposed.

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 escalate to remote code execution. Code execution can compromise data accessible to the service, enable persistent remote access, and disrupt document-processing services. The reachable filesystem locations and resulting impact depend on the service account's permissions and how the written files are subsequently used.

Mitigation

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

Until upgrading, remove direct Internet access to Document Server and restrict connections to the integrated platform or an authorized reverse proxy. Limit access to the upload functionality to trusted clients and configure a WAF or reverse proxy to reject traversal sequences and encoded equivalents in upload requests. Replace default or weak JWT signing secrets with strong, unique secrets; this reduces exposure to forged requests but does not correct the path traversal flaw. Review upload logs, unexpected file changes, unusual child processes of ONLYOFFICE services, and abnormal 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 deployments and Document Server components integrated with ONLYOFFICE Workspace, Nextcloud, ownCloud, or other platforms. Confirm the running instance has been updated. Investigate potentially exposed systems for unauthorized file modifications and established access; patching 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 18, 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 18, 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 deployments and Document Server components integrated with ONLYOFFICE Workspace, Nextcloud, ownCloud, or other platforms.
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 88.1% (100th percentile) as of Nov 18, 2026.
Activity feed

Recent activity

37 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 activity19Community discussion across Reddit, Mastodon, and other social sources.