CVE-2026-113630: ONLYOFFICE Docs Local Privilege Escalation to Root via Sed Command Injection in documentserver-flush-cache.sh
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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must already have local command execution as the ds user in the official onlyoffice/documentserver container. The issue is therefore relevant where a user or another compromise can obtain execution in that account's context.
Does exploitation require user interaction or network access?
No user interaction is required, and the listed attack vector is local. Exploitation requires supplying a crafted --hash argument to the maintenance helper from the ds user context.
Why does this result in root-level execution?
The packaged sudoers policy allows ds to run documentserver-flush-cache.sh as root without a password and without argument restrictions. The helper inserts the supplied hash into a GNU sed expression, whose e flag can execute attacker-controlled commands as root.
Are default packaged permissions affected?
The described exposure relies on the packaged sudoers policy granting ds passwordless root execution of the helper with unrestricted arguments. This means deployments using that policy are affected once an attacker can execute commands as ds.