Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain code execution as ds user
-
DeliveryCraft malicious --hash sed payload
-
ExploitInvoke flush-cache helper via passwordless sudo
-
Executionsed 'e' flag runs commands as root
-
ImpactFull root control of container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an existing local foothold with command execution as the 'ds' service account inside the official onlyoffice/documentserver container running version 9.4.0-129; it is a privilege-escalation primitive, not a remote entry point. The specific prerequisite is the packaged sudoers policy that lets ds run documentserver-flush-cache.sh as root without a password and with unrestricted arguments, combined with the helper interpolating the --hash argument unvalidated into a GNU sed expression where the 'e' flag executes shell commands. Limiting factors: attacker must already control the ds user (so an earlier compromise step is needed), exploitation is local only (AV:L, no remote/network path), and it is specific to the affected container build and its shipped sudoers/helper configuration - hardened deployments that alter the sudoers policy or patch the helper remove the path. |
| Impact | This is a genuine local privilege-escalation issue but not a drop-everything emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8, HIGH) is internally consistent with the description: exploitation requires AV:L local command execution already as the low-privileged 'ds' user (PR:L), and the sudoers policy plus the unvalidated --hash into a GNU sed 'e' expression give full C:H/I:H/A:H as root. No EPSS score was supplied and the vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation. A public PoC reference exists (github.com/jburgess-r7) but the input marks it as reference only, not verified as working exploit code, so POC availability must not be treated as active exploitation. The vuln.today decision label is 'this_week' (not act_now/emergency), aligning with a serious-but-chainable local escalation rather than a remotely wormable flaw. Key signal: this is a second-stage vulnerability - it has no value to an attacker who has not already achieved code execution as the ds user (Rapid7's writeup chains five bugs 'from view-only access to container root'), so real-world priority depends heavily on exposure of the preceding vulnerabilities and on whether the container runs with a meaningful root/container boundary. |
| Exploit ScenarioDerived | An attacker who has already gained code execution as the unprivileged 'ds' user inside an onlyoffice/documentserver 9.4.0-129 container (for example by chaining an earlier Rapid7-reported bug) invokes the passwordless sudo-permitted documentserver-flush-cache.sh helper with a malicious --hash value that breaks out of the GNU sed expression via the 'e' flag, running attacker-controlled commands as root. A public PoC reference exists but is not verified as working exploit code; the attack is local (AV:L) and low-complexity (AC:L), requiring only the existing ds-level foothold. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Local privilege escalation in ONLYOFFICE Docs (Document Server) 9.4.0-129 shipped as the official onlyoffice/documentserver container lets an attacker who already holds command execution as the 'ds' service account run arbitrary commands as root, because the packaged sudoers policy allows ds to invoke documentserver-flush-cache.sh as root without a password and with unrestricted arguments, and the helper interpolates a crafted --hash value unvalidated into a GNU sed expression whose 'e' flag executes shell commands. It is a post-compromise escalation primitive within the container, not a remote entry point: the CVSS vector is AV:L/PR:L/UI:N, so the attacker needs an existing local foothold as ds and no user interaction. A public PoC reference exists (a Rapid7-linked repository); it is not verified as working exploit code, there is no CISA KEV listing or confirmed active exploitation, and the vendor has released fixes per the Rapid7 disclosure.
RemediationAI
Apply the vendor's fixed ONLYOFFICE Docs (Document Server) build for the affected container and redeploy the onlyoffice/documentserver image rather than upgrading in place, since the sudoers file and helper are baked into the image; the Rapid7 advisory at https://www.rapid7.com/blog/post/ve-from-view-only-access-to-container-root-five-vulnerabilities-in-onlyoffice-docs-fixed/ documents that fixes were released, but no exact fixed version string is present in the provided data, so confirm the patched tag with ONLYOFFICE before rollout. Where an immediate upgrade is not possible, remove the escalation path by editing the packaged sudoers policy so the ds account can no longer run documentserver-flush-cache.sh as root with NOPASSWD and unrestricted arguments - either drop the rule entirely (cache-flush operations must then be run manually as root or via a restricted wrapper) or constrain it with a fixed argument list or a validated wrapper script (the trade-off is that legitimate automated cache flushes using dynamic --hash values will need rework). Additionally, treat the ds account as already compromised if the container ran untrusted workloads, because the pre-condition is command execution as ds. Note that because this is a local privilege-escalation primitive, reducing who can reach the ds shell inside the container lowers exploitability but does not repair the underlying helper.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-78 OS command injection arising from unsafe data flow between a sudo-exposed maintenance script and a shell-invoking utility. ONLYOFFICE's official onlyoffice/documentserver container ships a sudoers rule that grants the low-privileged 'ds' service account passwordless root execution of documentserver-flush-cache.sh with no argument restrictions, so the argument boundary is the only thing separating ds from root. The helper passes the user-supplied --hash value directly into a GNU sed expression; sed's 'e' flag treats the pattern space as a shell command and executes it, so a crafted --hash containing sed syntax plus a command escapes the intended string substitution and runs with the helper's root privileges. The underlying technology is GNU sed (the non-POSIX execute extension) plus sudo's NOPASSWD/unrestricted-command semantics, both standard components of Debian-based container images. The trigger is confirmed for the shipped helper and sudoers configuration of version 9.4.0-129; the supplied CPE (cpe:2.3:a:onlyoffice:docs_(document_server):*:*:*:*:*:*:*:*) is a wildcard and does not by itself confirm which other Document Server builds carry the same helper and sudoers rule, so exposure outside that container build is unverified.
Know when Onlyoffice gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local exploitation (AV:L) by an already-authenticated ds user (PR:L) with no user interaction and low complexity, yielding full root command execution (C/I/A:H); scope unchanged as escalation stays within the OS authority.
Primary rating from Vendor (rapid7).
CVSS VectorVendor: rapid7
Lifecycle Timeline
2DescriptionCVE.org
Command injection in the documentserver-flush-cache.sh maintenance helper in ONLYOFFICE Docs (Document Server) 9.4.0-129 on the official onlyoffice/documentserver container allows a local attacker with command execution as the ds user to execute arbitrary commands as root via a crafted --hash argument that is interpolated unvalidated into a GNU sed expression, where the sed e flag runs attacker-controlled commands. The packaged sudoers policy permits ds to run the helper as root without a password and with unrestricted arguments.
Technical POC Analysis
CWE-78 OS command injection in documentserver-flush-cache.sh, a maintenance helper shipped with ONLYOFFICE Docs (Document Server) 9.4.0-129.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
ONLYOFFICE Docs, a widely used document collaboration platform, contains a high-severity local privilege escalation flaw that enables an attacker with an existing foothold as the 'ds' service account to gain root control within the container. This puts organizations hosting ONLYOFFICE at risk of full container compromise, potentially leading to data exfiltration, service disruption, or lateral movement if the container interacts with other systems. Leadership should prioritize patching because many deployments use the official container, and the flaw is easy to exploit once an initial foothold is achieved.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Onlyoffice
View allDirectory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT
An out of bounds memory access vulnerability in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to
A use after free issue discovered in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to run arbitr
Onlyoffice Community Server before v12.5.2 was discovered to contain a remote code execution (RCE) vulnerability via the
Onlyoffice Document Server v6.0.0 and below and Core 6.1.0.26 and below were discovered to contain a heap overflow via t
Onlyoffice Document Server v6.0.0 and below and Core 6.1.0.26 and below were discovered to contain a stack overflow via
A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21. Rated cri
A heap buffer overflow vulnerability inside of BMP image processing was found at [core] module of ONLYOFFICE DocumentSer
A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.3. Rated critical
A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.2.0.236-v5.6.4.13. Rated crit
Memory Exhaustion vulnerability in ONLYOFFICE Document Server 4.0.3 through 7.3.2 allows remote attackers to cause a den
An improper binary stream data handling issue was found in the [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.
EUVD-2026-126499
GHSA-vmw7-2j26-3m5w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB