Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3199
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3199
Complete source record
{
"id": "1ac291dc90e6c1c4d2c1cba5c17c1502a0ef0bafb2ab6e1bb1b5f30e4f51c029",
"url": "https://osv.dev/vulnerability/CVE-2021-3199",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3199",
"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.",
"evidence": "osv:CVE-2021-3199",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-3199",
"aliases": [
"CVE-2021-3199"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/onlyoffice/documentserver",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0187bea803abdd2b2b6ad8168272d77e27739add"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:onlyoffice:document_server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.6.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"ONLYOFFICE-DocumentServer-5.6.2",
"ONLYOFFICE-DocumentServer-5.6.1",
"ONLYOFFICE-DocumentServer-5.6.0",
"ONLYOFFICE-DocumentServer-5.5.3",
"ONLYOFFICE-DocumentServer-5.5.1",
"ONLYOFFICE-DocumentServer-5.5.0",
"ONLYOFFICE-DocumentServer-5.4.2",
"ONLYOFFICE-DocumentServer-5.4.1",
"ONLYOFFICE-DocumentServer-5.4.0-2",
"ONLYOFFICE-DocumentServer-5.3.4",
"ONLYOFFICE-DocumentServer-5.3.2",
"ONLYOFFICE-DocumentServer-5.3.1",
"ONLYOFFICE-DocumentServer-5.3.0",
"ONLYOFFICE-DocumentServer-5.2.8",
"ONLYOFFICE-DocumentServer-5.2.7",
"ONLYOFFICE-DocumentServer-5.2.6",
"ONLYOFFICE-DocumentServer-5.2.4",
"ONLYOFFICE-DocumentServer-5.2.3",
"ONLYOFFICE-DocumentServer-5.2.2",
"ONLYOFFICE-DocumentServer-5.2.0",
"ONLYOFFICE-DocumentServer-5.1.5",
"ONLYOFFICE-DocumentServer-5.1.4",
"ONLYOFFICE-DocumentServer-5.1.3",
"ONLYOFFICE-DocumentServer-5.1.2",
"ONLYOFFICE-DocumentServer-5.1.1",
"ONLYOFFICE-DocumentServer-5.1.0",
"ONLYOFFICE-DocumentServer-5.0.7",
"ONLYOFFICE-DocumentServer-5.0.6",
"ONLYOFFICE-DocumentServer-5.0.5",
"ONLYOFFICE-DocumentServer-5.0.4",
"ONLYOFFICE-DocumentServer-5.0.3",
"ONLYOFFICE-DocumentServer-4.4.3",
"ONLYOFFICE-DocumentServer-4.4.2",
"ONLYOFFICE-DocumentServer-4.4.1",
"ONLYOFFICE-DocumentServer-4.3.6",
"ONLYOFFICE-DocumentServer-4.3.5",
"ONLYOFFICE-DocumentServer-4.3.4",
"ONLYOFFICE-DocumentServer-4.3.3",
"ONLYOFFICE-DocumentServer-4.3.2",
"ONLYOFFICE-DocumentServer-4.3.1",
"ONLYOFFICE-DocumentServer-4.3.0",
"ONLYOFFICE-DocumentServer-4.2.11",
"ONLYOFFICE-DocumentServer-4.2.10",
"ONLYOFFICE-DocumentServer-4.2.9",
"ONLYOFFICE-DocumentServer-4.0.0-9",
"ONLYOFFICE-DocumentServer-4.2.8",
"ONLYOFFICE-DocumentServer-4.2.7",
"ONLYOFFICE-DocumentServer-4.2.5",
"ONLYOFFICE-DocumentServer-4.2.4",
"ONLYOFFICE-DocumentServer-4.2.3",
"ONLYOFFICE-DocumentServer-4.2.1",
"ONLYOFFICE-DocumentServer-4.2.0",
"ONLYOFFICE-DocumentServer-4.1.8-1",
"ONLYOFFICE-DocumentServer-4.1.6-3",
"ONLYOFFICE-DocumentServer-4.1.5-1",
"ONLYOFFICE-DocumentServer-4.1.4-3",
"ONLYOFFICE-DocumentServer-4.1.2-37",
"ONLYOFFICE-DocumentServer-4.0.3-3",
"ONLYOFFICE-DocumentServer-4.0.2-4",
"ONLYOFFICE-DocumentServer-4.0.1-34",
"ONLYOFFICE-DocumentServer-3.0.0",
"ONLYOFFICE-Online-Editors-2.5.7",
"ONLYOFFICE-Online-Editors-2.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3199.json"
}
}
],
"modified": "2026-10-20T10:54:40.875358496Z",
"provider": "osv",
"references": [
"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3199",
"https://github.com/ONLYOFFICE/DocumentServer/blob/903fe5ab7a275bd69c3c3346af2d21cf87ebeabf/CHANGELOG.md#563",
"https://github.com/moehw/poc_exploits/tree/master/CVE-2021-3199/poc_uploadImageFile.py",
"https://github.com/nola-milkin/poc_exploits/blob/master/CVE-2021-3199/poc_uploadImageFile.py"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-3199",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385877,
"published_at": "2021-01-26T18:16:28.507+00:00"
}