{"id":"CVE-2021-3199","kind":"vulnerability","aliases":["CVE-2021-3199"],"related":[],"title":"Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when…","description":"ONLYOFFICE Docs contains a path traversal vulnerability that can occur when JWT is used, via a /.. sequence in an image upload parameter and could allow for remote code execution.\n\nCISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.","summary":"Path traversal in ONLYOFFICE Document Server's /upload image handling (a /.. sequence in an image upload parameter) leads to remote code execution when JWT is enabled. NVD scores it 9.8 (network, no privileges, no user interaction). It is in the CISA KEV catalog. The fix shipped in 5.6.3, released in 2020, so any current install should already be past it. Only very old or unmaintained instances are at risk.","severity":"critical","cvss":9.8,"epss":null,"exploited":true,"exploited_at":"2026-10-08T00:00:00+00:00","products":[{"name":"ONLYOFFICE Docs","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"ONLYOFFICE Document Server","fixed":["5.6.3"],"affected":"< 5.6.3","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["document-server","exploited","onlyoffice","package","path-traversal","rce","self-hosted"],"not_affected_if":["jwt-disabled","managed-hosting","version-5.6.3-or-later"],"how_to_check":"Check the Document Server version: open http://<host>/ (welcome page), or run 'curl http://<host>/hosting/discovery', or on Linux run 'dpkg -l onlyoffice-documentserver' or 'rpm -q onlyoffice-documentserver'. For Docker, run 'docker inspect' on the image tag. Anything below 5.6.3 is vulnerable. The advisory says 'when JWT is used'; JWT settings are in local.json/default.json under services.CoAuthoring.token. I did not verify whether the flaw is reachable with JWT disabled.","fix":"Upgrade ONLYOFFICE Document Server / Docs to 5.6.3 or later. Current releases are far past this. Keep JWT enabled with a strong secret, and do not expose the Document Server to the internet unless needed.","status":"open","published_at":"2021-01-26T18:16:28+00:00","first_seen_at":"2026-10-23T19:11:50+00:00","triaged_at":"2026-10-23T19:50:02+00:00","updated_at":"2026-10-23T23:44:52+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-23T19:50:02Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade ONLYOFFICE Docs to a fixed release per vendor instructions; the fixed version is not stated in the sources.","summary":"ONLYOFFICE Docs Server has a path traversal flaw in its image upload handling that is exploitable when JWT is enabled, using a /.. sequence in an image upload parameter. The sources say it can lead to remote code execution, and CISA lists it as actively exploited.","category":"package","who_cares":["onlyoffice","self-hosted","document-server"],"confidence":0.6,"analyst_note":"Find the fixed version and the JWT configuration check in the ONLYOFFICE security bulletin for CVE-2021-3199; the CISA KEV entry does not list affected or fixed versions.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["jwt-disabled","managed-hosting"],"severity_if_unknown":"high"},"cost_usd":0.000383,"input_tokens":2230,"output_tokens":319,"severity_before":"high"},"analyst_status":"done","analyst_note":"Find the fixed version and the JWT configuration check in the ONLYOFFICE security bulletin for CVE-2021-3199; the CISA KEV entry does not list affected or fixed versions.","search":"'-04':158C,184C,215C '-2021':18A,21A '-3199':19A,22A '/..':52B,127C '/upload':10A,48B '2020':92B '26':157C,183C,214C '5.6.3':16A,89B '9.8':71B 'accord':147C 'action':143C 'adher':211C 'allow':136C 'alreadi':98B 'appli':144C 'applic':181C 'asset':205C 'base':162C 'bod':156C,182C,213C 'catalog':84B 'cisa':82B,141C,154C,171C 'cloud':187C 'code':5A,62B,139C 'complianc':152C 'contain':113C 'could':135C 'current':95B 'cve':17A,20A 'directori':1A 'discontinu':190C 'doc':112C 'docs':24A 'document':13A,26A,29B,45B 'document-serv':28B 'enabl':67B 'ensur':151C,210C 'evalu':203C 'execut':6A,63B,140C 'exploit':31B 'exposur':208C 'fix':86B 'follow':180C 'forens':173C 'guidanc':169C,185C 'guidelin':217C 'handl':50B 'host':40B 'imag':49B,56B,131C 'instal':96B 'instanc':107B 'instruct':150C 'interact':77B 'internet':207C 'jwt':65B,122C 'kev':83B 'lead':59B 'mitig':145C,196C 'network':72B 'note':168C,179C 'nvd':68B 'occur':8A,120C 'old':104B 'onlyoffic':12A,32B,44B,111C 'onlyoffice':23A,25A 'packag':33B 'paramet':58B,133C 'past':100B 'patch':216C 'path':35B,41B,115C 'path-travers':34B 'priorit':159C 'privileg':74B 'product':194C 'rce':37B 'releas':90B 'remot':4A,61B,138C 'requir':142C,175C 'respons':201C 'risk':110B,164C 'score':69B 'secur':160C 'see':165C,176C 'self':39B 'self-host':38B 'sequenc':53B,128C 'server':14A,27A,30B,46B 'servic':188C 'ship':87B 'stakehold':199C 'travers':2A,36B,42B,116C 'triag':174C 'unavail':198C 'unmaintain':106B 'updat':161C 'upload':57B,132C 'url':166C,177C 'use':124C,191C 'user':76B 'vendor':149C 'via':125C 'vulner':117C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2021-01-26T18:16:28+00:00","kev":{"dateAdded":"2026-10-08","dueDate":"2026-10-11","requiredAction":"Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"nvd@nist.gov","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2021-3199","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-3199","severity":null,"published_at":"2026-10-08T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:50+00:00","fetched_at":"2026-10-25T20:35:30+00:00","note":null},{"source":"analyst","external_id":"CVE-2021-3199:108","url":null,"severity":null,"published_at":"2026-10-23T21:35:15+00:00","modified_at":"2026-10-23T21:35:15+00:00","first_seen_at":"2026-10-23T21:35:15+00:00","fetched_at":"2026-10-23T21:35:15+00:00","note":"Fixed in Document Server 5.6.3 per the vendor changelog ('Fix Path Traversal vulnerability via image upload params', Bug #46113) and the NVD/OSV range (< 5.6.3). No standalone ONLYOFFICE security bulletin found. PoC listed in OSV references (moehw/poc_exploits, CVE-2021-3199/poc_uploadImageFile.py) but I could not open it. KEV exploitation is from the CISA catalog. The Flax Typhoon attribution comes only from a secondary blog and is unconfirmed. X posts only restate the advisory."},{"source":"nvd","external_id":"CVE-2021-3199","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3199","severity":null,"published_at":"2021-01-26T18:16:28+00:00","modified_at":"2026-10-09T14:20:47+00:00","first_seen_at":"2026-10-23T23:44:52+00:00","fetched_at":"2026-10-23T23:44:52+00:00","note":null}],"documents":[{"id":1118,"url":"https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md","title":"ONLYOFFICE DocumentServer changelog (5.6.3: path traversal via image upload params fixed)","kind":"release","source":"analyst","text":null,"published_at":null,"relation":"fix","confidence":null,"note":null},{"id":1119,"url":"https://osv.dev/vulnerability/CVE-2021-3199","title":"OSV CVE-2021-3199 (NVD record: before 5.6.3, JWT, CVSS 9.8)","kind":"advisory","source":"analyst","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":null}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}