ONLYOFFICE Docs: Command injection in documentserver-flush-cache.sh (CVE-2026-113630)
A command injection vulnerability in the documentserver-flush-cache.sh maintenance helper in ONLYOFFICE Docs allows a local attacker with access as the ds user to escalate privileges to root.
CVE search metadata
CVE search record: CVE-2026-113630. Severity: high. CVSS: 7.8. KEV: no. Product: ONLYOFFICE Docs. Brief: ONLYOFFICE Docs: Command injection in documentserver-flush-cache.sh (CVE-2026-113630). Brief link: https://feed.craftedsignal.io/briefs/2026-11-cve-2026-113630/
Triage facts
Revision 1- Applicability
- ONLYOFFICE Docs
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 16, 18:52 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Overview
ONLYOFFICE Docs (Document Server) version 9.4.0-129 contains a command injection vulnerability within the documentserver-flush-cache.sh maintenance script. The script takes an unvalidated --hash argument and interpolates it into a GNU sed expression. Because the sed e flag is used in the processing of this argument, an attacker can trigger arbitrary command execution. The default sudoers configuration for the official ONLYOFFICE container allows the ds user to execute this script as root without a password and with arbitrary arguments, facilitating privilege escalation to root. The vendor has not yet disclosed a fixed version.
Attack Chain
- Attacker gains initial access to the container under the context of the ds user.
- Attacker invokes the documentserver-flush-cache.sh script as root via sudo.
- Attacker provides a crafted --hash argument containing malicious commands.
- The script interpolates the malicious input into a GNU sed expression.
- The sed e flag executes the attacker-injected commands as the root user.
Impact
Successful exploitation allows a local attacker already operating as the ds user to execute arbitrary commands with root privileges, resulting in full system compromise of the affected container.
Recommendation
- Restrict sudo privileges: Audit and modify the sudoers file within the ONLYOFFICE container to prevent the ds user from executing documentserver-flush-cache.sh with arbitrary arguments.
- Monitor: Implement monitoring for unusual process executions originating from the ds user, specifically those involving the maintenance helper script.
- Updates: Monitor official ONLYOFFICE release notes for a patch addressing CVE-2026-113630 and upgrade immediately upon availability.
Threat Hunt
Monitor sudo execution logs for calls to documentserver-flush-cache.sh by the ds user where the --hash argument contains suspicious characters such as semicolons, pipes, or backticks.
Data: Linux system logs, sudo logs