CVE-2026-57999: Remote Root Command Injection in luci-app-tailscale-community
A command injection flaw in the luci-app-tailscale-community package allows any authenticated user to run arbitrary commands with root privileges. The vulnerability stems from improper handling of login server parameters in the Tailscale RPC method—specifically, user-supplied values are embedded in a shell command without proper escaping, enabling shell metacharacters like $() to break out and execute attacker-controlled code.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-78
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-29 / 2026-07-14
NVD description (verbatim)
luci-app-tailscale-community contains a command injection vulnerability in the tailscale.do_login RPC method that allows authenticated users to execute arbitrary commands as root. The vulnerability exists because user-controlled loginserver and loginserver_authkey parameters are improperly quoted within a double-quoted shell command, allowing shell substitutions like $() to be evaluated by the outer shell before argument processing.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-57999 is a shell command injection vulnerability (CWE-78) in the tailscale.do_login RPC handler. The do_login method constructs a shell command that incorporates the loginserver and loginserver_authkey parameters without adequate quoting. Although these parameters are placed within double quotes, the outer shell still evaluates variable substitution syntax—allowing an authenticated caller to inject commands via shell expansion operators. This permits execution of arbitrary shell commands in the context of the root user.
Business impact
Exploitation of this vulnerability enables any authenticated user with access to the Tailscale configuration interface to gain root-level code execution on the affected device. In environments where the web UI is exposed on internal networks or accessible to multiple users, this creates a direct privilege escalation path. Attackers could modify system configuration, install persistence mechanisms, exfiltrate data, or pivot to other network segments using the compromised device as a foothold.
Affected systems
luci-app-tailscale-community is affected. The vulnerability requires an authenticated user session to exploit, so exposure is limited to systems where the web administration interface is accessible. No specific version numbers are documented in the advisory data; verify affected versions against the vendor's security notice.
Exploitability
The vulnerability is relatively straightforward to exploit: an authenticated attacker need only craft a login server parameter containing shell metacharacters (such as $(command) or `command`) and send it via the RPC interface. No additional user interaction is required, and no special network positioning is needed beyond authenticated access. The low complexity and lack of user interaction (UI:N) make this a practical risk in multi-user or shared-access environments.
Remediation
Apply the security patch from the luci-app-tailscale-community project. Verify the patched version against the vendor's advisory to ensure the fix properly quotes or sanitizes the loginserver and loginserver_authkey parameters. Until patched, restrict web UI access to trusted administrators and implement network segmentation to limit which users can reach the Tailscale configuration interface.
Patch guidance
Monitor the luci-app-tailscale-community repository and official channels for a patched release. When available, update to the corrected version and restart any dependent services. Test the patch in a non-production environment first to confirm compatibility with your configuration. If patches are delayed, mitigate by disabling the Tailscale web UI on untrusted networks or implementing reverse-proxy authentication controls.
Detection guidance
Monitor system logs and web server access logs for unusual RPC calls to tailscale.do_login with suspicious parameter values (e.g., containing $(), backticks, or semicolons). Endpoint detection and response (EDR) solutions should flag unexpected root-process spawning from the Tailscale web service. Network-based detection can identify anomalous RPC method calls with shell metacharacters in the loginserver field.
Why prioritize this
This vulnerability earns a HIGH CVSS score (8.8) due to high impact (full confidentiality, integrity, and availability compromise), low attack complexity, and the requirement for authentication that is present in typical multi-user or shared-network deployments. It should be prioritized for patching within 1–2 weeks, especially in environments where the Tailscale web UI is accessible to non-administrative accounts or exposed on semi-trusted internal networks.
Risk score, explained
The CVSS 3.1 score of 8.8 reflects complete system compromise (C:H/I:H/A:H) achieved through a low-complexity network-based attack (AV:N/AC:L). The PR:L (requires low privilege—i.e., authentication) slightly reduces the score from a 9.0, but the practical impact remains severe because authenticated access is common in corporate and shared-device environments.
Frequently asked questions
What privilege level do I need to exploit this vulnerability?
You must be an authenticated user with access to the luci-app-tailscale-community web interface. You do not need to be an administrator to trigger the vulnerability, making it a concern in multi-user deployments.
Can this be exploited remotely, or only locally on the device?
The vulnerability can be exploited remotely if the Tailscale web UI is reachable over the network (e.g., via a reverse proxy or exposed internal network). It is not limited to local-only access.
Are there workarounds if I cannot patch immediately?
Yes. Restrict network access to the Tailscale web UI using firewall rules or reverse-proxy authentication. Limit UI access to trusted administrators only. Disable the web UI if not actively needed. These steps reduce—but do not eliminate—risk until a patch is applied.
How does the command injection occur technically?
The do_login method constructs a shell command by embedding user-supplied loginserver and loginserver_authkey parameters inside double quotes. However, the outer shell still interprets special characters like $(), allowing an attacker to inject arbitrary commands that execute before argument parsing occurs.
This analysis is based on available CVE data as of the publication date. Vendor-specific patch information, affected version numbers, and advisory links should be verified directly with the luci-app-tailscale-community maintainers. No proof-of-concept or exploit code is provided. Organizations should assess their own exposure based on deployment topology and authentication controls. Security guidance is offered as-is and should be validated against your environment and risk policies. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-41265HIGHWaterfall WF-500 TX Host OS Command Injection (CVSS 7.2)
- CVE-2025-41266HIGHWaterfall WF-500 TX Host Command Injection Vulnerability Analysis
- CVE-2025-41267HIGHWaterfall WF-500 TX Host Command Injection Vulnerability
- CVE-2025-41279HIGHOS Command Injection in Waterfall WF-500 RX Host Administration WebUI
- CVE-2025-41281HIGHWaterfall WF-500 OS Command Injection
- CVE-2025-66273HIGHQNAP Command Injection in QTS and QuTS hero
- CVE-2025-66279HIGHQNAP NAS Command Injection – Admin Authentication Required, HIGH Severity
- CVE-2025-69755HIGHNeterbit NW-431F Router RCE and Data Exposure Vulnerability