🔴 CVE-2021-3199

CVE-2021-3199 is a directory traversal vulnerability in ONLYOFFICE Document Server (versions prior to 5.6.3) that allows remote code execution via a path traversal sequence (/.. ) injected into an image upload parameter at the /upload endpoint. The vulnerability is exploitable over the network without user interaction, and public proof-of-concept exploit code is available on GitHub. ONLYOFFICE Document Server is commonly deployed as an internet-facing collaborative document editing service, making this a critical direct exploitation risk.

← Back to Overview
HIGH_RISK
Risk Level
9.8
CVSS Score
NETWORK
Attack Vector
Initial Access
ATT&CK Tactic
T1190 — Exploit Public-Facing Application
ATT&CK Technique
HIGH
Deployment Risk
No
Ransomware

📋 Vulnerability Details

Data Source: CIRCL

Confidence: HIGH

Exploitation Method: DIRECT_NETWORK

CVE Published: 2021-01-22

Added to CISA KEV: 2026-10-08 2085 DAYS BETWEEN CVE AND KEV

🎯 Recommendations:

🔍 Web Intelligence (Kagi · 2026-10-08)

Summary

CVE-2021-3199 is a critical directory traversal vulnerability affecting ONLYOFFICE Document Server versions prior to 5.6.3. When JSON Web Token (JWT) authentication is enabled, an attacker can exploit the `/upload` endpoint by injecting a `/..` sequence into an image upload parameter, potentially leading to remote code execution. This vulnerability is highly significant because it allows unauthenticated or unauthorized attackers to gain control over the affected server, posing a severe risk to the confidentiality, integrity, and availability of document management systems [1][2].

Exploitation

  • Active Exploitation: There is evidence of public proof-of-concept (PoC) exploit availability for this vulnerability [3].
  • Threat Actors/Ransomware: Specific information regarding widespread use by ransomware campaigns or named threat actors is not widely documented in standard security databases for this specific CVE.
  • Prerequisites:
* Network Access: Exploitation is remote. * Authentication: The vulnerability is specifically relevant when JWT is used, but it can be triggered through the upload endpoint. * User Interaction: Generally does not require user interaction, as it is a server-side request processing vulnerability.

Affected Products & Patches

  • Affected Versions: ONLYOFFICE Document Server versions prior to 5.6.3 [1].
  • Patch Availability: The vulnerability was resolved in version 5.6.3; users are advised to update to the latest available stable version to ensure full protection [1].
  • Mitigations/Workarounds: If an immediate update is not possible, restricting network access to the Document Server to trusted IP addresses can reduce the attack surface. Ensuring that JWT secrets are complex and not exposed is also recommended.

Impact

  • Access/Capabilities: Successful exploitation grants an attacker the ability to perform directory traversal, which can lead to arbitrary file upload and subsequent remote code execution (RCE) on the host server.
  • Business Risk: For internet-facing deployments, this vulnerability presents a high risk of total system compromise. An attacker could exfiltrate sensitive documents, modify existing content, or use the compromised server as a pivot point for further lateral movement within the organization's internal network.

Sources

  1. CVE Record: CVE-2021-3199

    Vulnerability detail for CVE-2021-3199. Common vulnerabilities and Exposures (CVE) U.S. Department of Homeland Security (DHS) external link Cybersecurity and ... Vulnerability detail for CVE-2021-3199 Description Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Docum…

  2. Directory traversal with remote code execution can occur...

    CVE-2021-3199. Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT is used ...

  3. poc_exploits/CVE-2021-3199/readme.txt at master - GitHub

    poc_exploits / CVE-2021-3199 / readme.txt moehw update CVE ID 90666f6 · 6 years ago History 74 lines (54 loc) · 2.57 KB…