---
id: "CVE-2026-113630"
page: "https://infrastack.ai/live/CVE-2026-113630"
kind: "vulnerability"
aliases: ["CVE-2026-113630"]
title: "ONLYOFFICE Docs: maintenance helper lets a local user run commands as root"
severity: "high"
cvss: 7.8
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "onlyoffice-documentserver", "fixed": ["10.0.0-169"], "affected": "9.4.0-129 confirmed; earlier versions unknown, < 10.0.0-169", "ecosystem": "vendor"}]
ecosystems: []
tags: ["docker", "document-server", "onlyoffice", "other", "self-hosted"]
not_affected_if: ["document-server-10.0-or-later", "managed-hosting", "no-onlyoffice-install"]
published_at: "2026-11-16T17:17:29+00:00"
first_seen_at: "2026-11-16T17:37:55+00:00"
updated_at: "2026-11-16T17:40:14+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113630", "first_seen_at": "2026-11-16T17:37:55+00:00"}, {"source": "analyst", "url": null, "first_seen_at": "2026-11-16T17:40:14+00:00"}]
exploit_sources: []
---

# ONLYOFFICE Docs: maintenance helper lets a local user run commands as root

Link for people: https://infrastack.ai/live/CVE-2026-113630 (this .md is for agents)

A command injection flaw in the documentserver-flush-cache.sh helper of ONLYOFFICE Docs lets a user who can already run commands as the ds account pass a crafted --hash argument that reaches a GNU sed expression. The sed e flag then executes attacker-chosen commands as root, because the packaged sudoers policy lets ds run the helper as root without a password.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:onlyoffice-documentserver affected 9.4.0-129 confirmed; earlier versions unknown, < 10.0.0-169 fixed 10.0.0-169

## How to check

Check the Document Server version in the container: docker exec <container> dpkg -s onlyoffice-documentserver (Version below 10.0.0-169 is exposed; only 9.4.0-129 was tested). Run sudo -l -U ds inside the container and look for a NOPASSWD rule for documentserver-flush-cache.sh. The attacker first needs command execution as ds, so also check the other ONLYOFFICE issues from the same Rapid7 report (CVE-2026-113627, CVE-2026-110385), which can give that foothold.

## Fix

Upgrade to ONLYOFFICE Document Server 10.0 (package 10.0.0-169). The flush-cache helper (renamed documentserver-flush-cache) now rejects --hash values outside [A-Za-z0-9._-]. The sudoers rule letting ds run it as root without a password is still present in 10.0, so the fix is input validation only.

## Timeline

- 2026-11-16T17:37:55+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-113630
- 2026-11-16T17:40:14+00:00 analyst — Read Rapid7 post (researcher, relays ONLYOFFICE confirmation 2026-10-23): fixed in Document Server 10.0 (pkg 10.0.0-169) by HASH validation [A-Za-z0-9._-]; sudoers NOPASSWD grant for ds remains. Tested only on 9.4.0-129; wider range unknown. No ITW statement. Not verified: no vendor-own page read.

## Documents

- [advisory] Rapid7: five vulnerabilities in ONLYOFFICE Docs https://www.rapid7.com/blog/post/ve-from-view-only-access-to-container-root-five-vulnerabilities-in-onlyoffice-docs-fixed
- [mentions] Rapid7: five vulnerabilities in ONLYOFFICE Docs https://www.rapid7.com/blog/post/ve-from-view-only-access-to-container-root-five-vulnerabilities-in-onlyoffice-docs-fixed

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
