ONLYOFFICE Docs
ONLYOFFICE Docs Server Path Traversal Vulnerability
Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT is used, via a /.. sequence in an image upload parameter.
Timeline
Days relative to CVE publicationFirst public PoC 5.8 years after publication; added to CISA KEV 5.7 years after publication. First PoC: nuclei template: ONLYOFFICE Document Server < 5.6.3 - Path Traversal to Arbitrary File Write (nuclei template, 2 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| moehw/poc_exploits | 21 Jan 2021 −10 h | 26 | PoC older repo: PoC date unknown, not used for the first PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: ONLYOFFICE Document Server < 5.6.3 - Path Traversal to Arbitrary File Write | 2 Nov 2026 | 17 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /upload/{var}/{var}/{var}
- Key headers
Authorization: Bearer {var}- Seen in
- 1 repo: moehw/poc_exploits
- Evidence
- moehw/poc_exploits/CVE-2021-3199/poc_uploadImageFile.py:58 moehw/poc_exploits/CVE-2021-3199/poc_uploadImageFile.py:90
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/upload/[^/?#]*/[^/?#]*/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-3199 ONLYOFFICE Docs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/upload/"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-3199; classtype:web-application-attack; sid:9226130; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ONLYOFFICE Docs exploit attempt (CVE-2021-3199)
id: gg-pocmon-cve-2021-3199-9226130
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-3199. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-3199
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/upload/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.3199