ONLYOFFICE Document Server is the editing back end behind Nextcloud, ownCloud, Seafile and a long list of self-hosted document stacks, and on builds before 5.6.3 its /upload route, the one the editors use to insert images, accepted a /.. sequence in an upload parameter, so a file could be placed outside the directory the server meant it for. The record adds a condition, “when JWT is used”, and a consequence, remote code execution. That is CVE-2021-3199, published in January 2021 and fixed by ONLYOFFICE in 5.6.3 under the changelog entry “Fix Path Traversal vulnerability via image upload params (Bug #46113)”; CISA added it to the Known Exploited Vulnerabilities catalogue on 8 October 2026, which means servers that never moved off a 2020 build are still out there and still being found. If any ONLYOFFICE Document Server you run reports a version below 5.6.3, take it off the network now and upgrade before it goes back. This page shows how to read the version on a package or Docker install, how to tell whether the JWT condition holds, how to upgrade by each route, and why a five-year-old bug is on this list at all.
CVE-2021-3199 at a glance.
| Component | ONLYOFFICE Document Server (the product is now sold as ONLYOFFICE Docs; the Community, Enterprise and Developer editions share the code), the image-upload handler at /upload. On Linux it is the onlyoffice-documentserver .deb and .rpm from ONLYOFFICE’s own repositories, the snap, and the onlyoffice/documentserver Docker image. No distribution ships it |
| Affected versions | Document Server before 5.6.3 (NVD CPE versionEndExcluding 5.6.3), when JSON Web Token validation is enabled |
| Fixed in | Document Server 5.6.3 (project changelog: “Fix Path Traversal vulnerability via image upload params (Bug #46113)”). Every release since, through the current 9.x series, carries the fix |
| Severity | CVSS 3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) from NVD and from CISA’s ADP entry; CVSS 2 7.5 from NVD. CWE-22, path traversal. No distribution packages it, so there are no distribution ratings |
| Exploited in the wild | On CISA’s Known Exploited Vulnerabilities catalogue, added 8 October 2026; federal remediation was due 11 October 2026. Ransomware use is recorded as Unknown. EPSS 0.302 (98.2nd percentile) on 29 October 2026 |
| Who is exposed | any Document Server below 5.6.3 that an attacker can send an HTTP request to; the vector is unauthenticated (PR:N). In practice that is forgotten installs: a Nextcloud integration set up in 2020 and never upgraded, a Docker container pinned to an old tag, an appliance that bundled 5.x. Not affected: 5.6.3 and later, and the current 9.x releases |
| Published | CVE record 22 January 2021; this page built 30 November 2026, last updated 30 November 2026 |
What it is
When a user inserts a picture into a document, the editor in the browser posts it to the Document Server’s /upload route, and the server stores it under a per-document path before the conversion service picks it up. The CVE record says that before 5.6.3 one of the parameters that builds that path accepted a /.. sequence, so the file could land outside the upload directory, anywhere the service user can write. That is CWE-22, and because it is a traversal on a write rather than a read, the record rates it as remote code execution: the attacker chooses the content as well as the destination. The record does not describe the path the public proofs of concept use and this page does not either; the fix, not the technique, is what matters to the person running the server.
The condition “when JWT is used” is the part that confuses people. Document Server can be configured to require a signed JSON Web Token on requests from the document store, which is the recommended setting and, since 7.2, the default; the record says the traversal is reachable on that configuration. The vector NVD assigned is unauthenticated, so the token is a precondition of the code path rather than a credential the attacker needs. What that means for you is simple: a server with JWT on is not protected by having it on, and a server with JWT off was already open to a worse class of problem. Neither state is a reason to leave 5.x running.
ONLYOFFICE fixed the bug in 5.6.3 and recorded it in the repository changelog under back-end fixes as Bug #46113, and MITRE published the CVE on 22 January 2021. Nothing more happened for five years, which is the normal life of a bug in a product most people upgrade alongside their Nextcloud. Then on 8 October 2026 CISA added it to the exploited list, together with three other old server-side flaws (ProFTPD, BIND and Struts) on the same day, with the three-day remediation deadline it reserves for items it considers urgent. An old CVE arriving on KEV is evidence of two things: that unpatched instances still exist in numbers worth scanning for, and that someone is scanning.
Who is affected on Linux
Document Server is installed from ONLYOFFICE’s repository, snap or Docker image rather than from a distribution, so the version that matters is the one the package or container reports and the trackers carry nothing for it. Each row is what the tracker showed on 30 November 2026; the link in a row is the tracker page.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted | — |
| Debian | Not packaged (“NOT-FOR-US: ONLYOFFICE Document Server”) | — |
| Ubuntu | Not packaged (“Does not apply to software found in Ubuntu”; page last updated 24 July 2024) | — |
| RHEL, Rocky, Alma, CentOS Stream | Not packaged; the page was unreachable on 30 November 2026 | — |
| Fedora, openSUSE/SLE, Arch | Not consulted (not packaged by any of them; Arch’s AUR builds track ONLYOFFICE’s own releases) | — |
ONLYOFFICE repository (.deb/.rpm), snap, onlyoffice/documentserver Docker image | Affected below 5.6.3 | Document Server 5.6.3 or later; any current 9.x release |
How to check
Two questions, in order: which version is installed, and is JWT validation on. The version is a package query on a package install and the same query inside the container on a Docker install, because the image carries the Debian package.
# 1. version: below 5.6.3 is affected
dpkg -s onlyoffice-documentserver 2>/dev/null | grep '^Version'; rpm -q onlyoffice-documentserver 2>/dev/null
snap list onlyoffice-ds 2>/dev/null
docker exec onlyoffice-documentserver dpkg -s onlyoffice-documentserver 2>/dev/null | grep '^Version' # container name varies
# the server also reports itself at /info/info.json when your address is on its allow-list
curl -s http://localhost/info/info.json 2>/dev/null | grep -oE '"version" *: *"[^"]*"'
# 2. the JWT condition: enable.browser/inbox/outbox under services.CoAuthoring.token
grep -A12 '"token"' /etc/onlyoffice/documentserver/local.json 2>/dev/null | grep -E '"(browser|inbox|outbox)"'
docker exec onlyoffice-documentserver printenv JWT_ENABLED 2>/dev/nullIf step 1 shows 5.6.3 or later, the code is fixed; on anything in the 7.x, 8.x or 9.x series you are years clear of it. If it shows 5.6.2 or lower, the server is affected, and step 2 only tells you whether it is in the configuration the record names: "browser": true or JWT_ENABLED=true is the “when JWT is used” state. Either way the answer is the upgrade below; the JWT setting is not a dial that makes an old build safe.
Because this one is on the KEV list, look back. The bug writes a file, so a successful exploit leaves one the package did not install, somewhere the service user can write. The nginx that fronts the service on every install route keeps the access log that says when and from where.
# files under the service's trees newer than the installed server build, owned by the service user
sudo find /var/www/onlyoffice /var/lib/onlyoffice /etc/onlyoffice -type f -user ds -newer /var/www/onlyoffice/documentserver/server 2>/dev/null | head -40
# every address that posted to /upload, and how often
sudo grep -h 'upload' /var/log/onlyoffice/documentserver/nginx.access.log* 2>/dev/null | awk '{print $1}' | sort | uniq -c | sort -rn | head
# the document-service processes: anything under the ds user that is not the service, the converter or the metrics agent
ps -o user,pid,ppid,etime,args -u ds 2>/dev/null | grep -vE 'docservice|converter|metrics|spellchecker|ps '
sudo ss -tnp state established 2>/dev/null | grep -E 'node|docservice' | awk '{print $4}' | sort | uniq -cA script in the service tree that the package did not install, or a process under the ds user that is not the document service, the converter or the metrics agent, is not a false positive. The exploit runs as that user, which on a package install owns the document cache and can read every document that passed through the server, so treat the documents as exposed as well as the host. Rebuild rather than clean: Restoring a Linux Server covers it, and a Document Server keeps no state worth keeping beyond its configuration, because the documents live in the store it serves.
How to fix it
Upgrade to the current release by whichever route installed the server, and restart it. There is no intermediate step: 5.6.3 fixed the bug, and the current 9.x packages install over any 5.x, 6.x, 7.x or 8.x. On a Docker install, pull a current tag rather than a pinned old one.
# ONLYOFFICE repository on Debian/Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade onlyoffice-documentserver
# ONLYOFFICE repository on RHEL family
sudo dnf update onlyoffice-documentserver
# snap
sudo snap refresh onlyoffice-ds
# Docker: move off the pinned tag, then recreate
docker compose pull onlyoffice-documentserver && docker compose up -d onlyoffice-documentserver
# confirm, then make sure the service came back
dpkg -s onlyoffice-documentserver 2>/dev/null | grep '^Version'
sudo supervisorctl status all 2>/dev/null; curl -s http://localhost/healthcheckONLYOFFICE publishes no workaround for this CVE and CISA’s required action is the vendor fix. If the upgrade has to wait, the only interim measure that holds is reachability: the editors are the sole legitimate client of /upload, and they call it from the user’s browser, so a Document Server that is reachable only through the reverse proxy of the document store that embeds it is as narrow as it can be made. A Reverse Proxy with Automatic TLS is the arrangement; a Document Server with its own public port on a 5.x build is the one being scanned for.
Do not turn JWT off because the record says the bug needs it. Without the token any client that can reach the server can open, convert and save documents as it likes, which is a worse condition than the one you would be avoiding, and ONLYOFFICE ships JWT on by default for exactly that reason. And do not read five years of silence as safety: the KEV entry in October 2026 is the statement that this bug is in use now, against servers that look like the one you have not upgraded.
Sources
- CVE-2021-3199 at CVE.org — the MITRE record: description and the changelog reference; CISA’s ADP entry adds CVSS 3.1 9.8, CWE-22 and the KEV date (published 22 January 2021, updated 9 October 2026)
- NVD — status Analyzed, CVSS 3.1 9.8 Primary, the CPE with
versionEndExcluding 5.6.3, KEV dates (last modified 9 October 2026) - CISA Known Exploited Vulnerabilities — added 8 October 2026, action due 11 October 2026, as “ONLYOFFICE Docs Server Path Traversal Vulnerability”
- ONLYOFFICE Document Server changelog, 5.6.3 — the vendor’s fix entry, “Fix Path Traversal vulnerability via image upload params (Bug #46113)”
- ONLYOFFICE Help Centre, Docs Community installation — the supported Linux install routes (deb, rpm, snap, Docker) and package names
- Distribution trackers: Debian (not packaged), Ubuntu (does not apply); Red Hat page unreachable on 30 November 2026 and the product is not carried
- EPSS — 0.302, 98.2nd percentile, scored 29 October 2026
Related reading
- CVE-2026-110447: Collabora Online Built-in CODE Server runs shell commands from an unauthenticated proxy.php request — the other self-hosted office back end, with a 2026 flaw of a similar shape
- Self-Hosting Your First Application, End to End — the Nextcloud-plus-Document-Server stack is most people’s second self-hosted app, and this is how to lay it out
- A Reverse Proxy with Automatic TLS — the Document Server should sit behind this, reachable by the document store and nobody else
- What Ships in Your Container Image, and What Happens to It After You Push — a container pinned to a 2020 tag is a 2020 server, and this is why
- The Half of Patching That Happens After the Patch is Installed — software outside the distribution’s repositories is the software that gets forgotten
- Restoring a Linux Server: What the Backup Kept and the Restore Threw Away — the rebuild, when the check turns up a file the package did not install
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

