Skip to main content

ONLYOFFICE Docs EUVDEUVD-2026-126499

| CVE-2026-113630 HIGH
OS Command Injection (CWE-78)
2026-11-16 rapid7 GHSA-vmw7-2j26-3m5w
7.8
CVSS 3.1 · Vendor: rapid7
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain code execution as ds user
  2. Delivery
    Craft malicious --hash sed payload
  3. Exploit
    Invoke flush-cache helper via passwordless sudo
  4. Execution
    sed 'e' flag runs commands as root
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 1.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Docs (Document Server) 9.4.0-129 <10.0.0

Affected Packages

euvd docs_document_server fix: 10.0.0

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

Vendor (rapid7) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (rapid7).

CVSS VectorVendor: rapid7

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 18:19 EUVD
CVE Published
Nov 16, 2026 - 16:31 cve.org
HIGH 7.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.3%
Top 29% exploitable
Prevalence
Medium
self-hosted ONLYOFFICE document server, common but not ubiquitous
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 1.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2021-3199 CRITICAL POC
9.8 Jan 26

Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT

CVE-2023-30187 CRITICAL POC
9.8 Aug 14

An out of bounds memory access vulnerability in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to

CVE-2023-30186 CRITICAL POC
9.8 Aug 14

A use after free issue discovered in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to run arbitr

CVE-2023-34939 CRITICAL POC
9.8 Jun 22

Onlyoffice Community Server before v12.5.2 was discovered to contain a remote code execution (RCE) vulnerability via the

CVE-2022-29777 CRITICAL POC
9.8 Jun 02

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

CVE-2022-29776 CRITICAL POC
9.8 Jun 02

Onlyoffice Document Server v6.0.0 and below and Core 6.1.0.26 and below were discovered to contain a stack overflow via

CVE-2021-25833 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21. Rated cri

CVE-2021-25832 CRITICAL POC
9.8 Mar 01

A heap buffer overflow vulnerability inside of BMP image processing was found at [core] module of ONLYOFFICE DocumentSer

CVE-2021-25831 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.3. Rated critical

CVE-2021-25830 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.2.0.236-v5.6.4.13. Rated crit

CVE-2023-30188 HIGH POC
7.5 Aug 14

Memory Exhaustion vulnerability in ONLYOFFICE Document Server 4.0.3 through 7.3.2 allows remote attackers to cause a den

CVE-2021-25829 HIGH POC
7.5 Mar 01

An improper binary stream data handling issue was found in the [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy