ONLYOFFICE Docs (Document Server)
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9.4.0-129, < 10.0.0
Fixed in 10.0.0
Mitigation
Upgrade Docs (Document Server) to 10.0.0 or later.
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; not in CISA KEV.
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| jburgess-r7/onlyoffice-2026-pocs | 16 Nov 2026 −6 h | 17 Nov 2026 | 1 | PoC older repo: PoC date unknown, not used for the first PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.