{"id":"CVE-2021-3199","title":"Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT is used, via a /.","summary":"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.","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-22"],"vendor":"onlyoffice","product":"document_server","affected":["document_server < 5.6.3"],"patched":["document_server 5.6.3"],"published":"2021-01-26","updated":"2026-10-09","sourceUpdated":"2026-10-09T14:20:47.350","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-3199","references":[{"url":"https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563","label":"cve@mitre.org"},{"url":"https://github.com/moehw/poc_exploits/tree/master/CVE-2021-3199/poc_uploadImageFile.py","label":"cve@mitre.org"},{"url":"https://github.com/nola-milkin/poc_exploits/blob/master/CVE-2021-3199/poc_uploadImageFile.py","label":"cve@mitre.org"},{"url":"https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/moehw/poc_exploits/tree/master/CVE-2021-3199/poc_uploadImageFile.py","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/nola-milkin/poc_exploits/blob/master/CVE-2021-3199/poc_uploadImageFile.py","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3199","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd","kev","in-the-wild","cve.org","exploit-available"],"epss":0.30244,"epssPercentile":0.98212,"kev":true,"kevDateAdded":"2026-10-08","kevDueDate":"2026-10-11","kevRansomware":false,"exploited":true,"exploitAvailable":true,"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-08T17:40:14.811565Z"},"ingestedAt":"2026-10-08T17:56:11.729Z","slug":"CVE-2021-3199","body":"## Overview\n\nDirectory 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.\n\n## Affected\n\n- `document_server < 5.6.3`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `document_server 5.6.3`","depth":"hadal","depthScore":85,"depthScoreParts":{"impact":53.9,"likelihood":6,"exploitation":25,"ransomware":0},"changes":[{"seq":229801,"id":"CVE-2021-3199","ts":1793056111720,"field":"epss","old":"0.20136","new":"0.30244"},{"seq":218507,"id":"CVE-2021-3199","ts":1791558066659,"field":"epss","old":"0.08215","new":"0.14548"},{"seq":218369,"id":"CVE-2021-3199","ts":1791519895831,"field":"kev","old":"false","new":"true"}]}