CVE-2021-3199KEV · OVERDUECWE-22path-traversal

ONLYOFFICE Docs Server Path Traversal Vulnerability

Critical · published January 26, 2021

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.8. It is confirmed in active exploitation. It sits in the 97.5th percentile for exploit probability.

13
days past CISA
deadline
CVSS v3.1
9.8
EPSS
20%
Percentile
97.5
In the wild
Confirmed
What it is

⚠️ A sneaky directory traversal flaw lurking in ONLYOFFICE Document Server lets attackers get crafty with image uploads! Think of this vulnerability like a delivery driver misreading an address and dropping off packages in the wrong location — in this case, an attacker can send a cleverly crafted upload that leads to unauthorized file access. If exploited, an attacker could gain remote code execution on the server, potentially accessing sensitive files or altering document processes. It’s like opening a door that should’ve been locked, allowing malicious activities to unfold uninterrupted!

Put simply

Think of this vulnerability like a delivery driver misreading an address and dropping off packages in the wrong location — in this case, an attacker can send a cleverly crafted upload that leads to unauthorized file access. This directory traversal vulnerability occurs when the server accepts a '/..' sequence in the image upload parameter, enabling an attacker to navigate outside the intended directory and execute code remotely.

What to do

If exploited, an attacker could gain remote code execution on the server, potentially accessing sensitive files or altering document processes. It’s like opening a door that should’ve been locked, allowing malicious activities to unfold uninterrupted! To protect your system, upgrade ONLYOFFICE Document Server to version 5.6.3 or later immediately. If you are using JWT, ensure proper validation of upload parameters and restrict file paths to prevent unauthorized access. You've got this! By taking these steps, you'll be a security hero, safeguarding your server from potential threats! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.20136 · 97.5th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2021-01-26T23:16Z
KEV added
2026-10-08 · due 2026-10-11
Affected products (1)
ProductVersionsFixed in
onlyoffice/document_server< 5.6.35.6.3
References (7)
EPSS history
Timeline
  • 11 OCT 03:15Z
    EPSS moved 8% → 19%
    epss
  • 08 OCT 00:00Z
    Added to CISA KEV — remediate by Oct 11
    kev
  • 22 JAN 02:41Z
    Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT is used, via a /.
    cvelistv5