Tailscale's engineering team is moving to address nearly a dozen security weaknesses discovered during an audit that could enable attackers to execute arbitrary code with elevated privileges, compromise authentication material, and disrupt service availability.
Tailscale operates a software-defined mesh VPN implementation layered on WireGuard, enabling direct peer-to-peer connections across computers, servers, and cloud infrastructure within an encrypted mesh network (called a "tailnet"). The platform allows users to securely link resources from any location.
Cyberdione Labs identified 11 separate vulnerabilities—collectively referred to as Tailworm—that remain unpatched in Tailscale version 1.104.2 and the self-hosted headscale v0.29.5 control plane. The research firm conducted its assessment on unmodified production software.
All findings were verified by reproduction in a lab environment on unmodified, released software (tailscale v1.104.2, headscale v0.29.5)
Erica Windisch, founder of Cyberdione Labs
Windisch, who disclosed the vulnerabilities to Tailscale and subsequently published technical details, emphasized the importance of rapid disclosure. "It is the opinion of the researchers that rapid awareness of these flaws will expediate remediation across impacted devices. These vulnerabilities were not introduced by the researchers, but were discovered, and discovered with low effort."
Vulnerability breakdown by component
The most severe flaw resides in Tailscale's integrated SSH server, which runs as root. The vulnerability stems from improper handling of Unix-socket forwarding operations, where path validation and file operations execute with root privileges while missing critical privilege-dropping logic. This allows race conditions that enable an ordinary SSH session to replace, connect to, or remove privileged resources.
Tailscale SSH (tailscaled's embedded SSH server, running as root)
- Unix-socket forwarding (ssh -R/-L) performs path checks and file operations as root; races and missing privilege drop let an ordinary session replace, dial, or delete privileged resources
- Requirement: One approved device plus one SSH policy rule (forwarding granted automatically on headscale; per-rule on SaaS)
- Impact: Root execution on target servers; capture of enrollment keys; arbitrary root-file deletion
Tailscale app connectors (conn25, experimental)
- Connector translates traffic to attacker-chosen destinations with no validation; network ACLs are never consulted for the true destination
- Requirement: A device granted the connector capability
- Impact: Reach cloud metadata (credential theft), internal LANs, and—in Kubernetes—every cluster service
headscale control server (self-hosted deployments)
- Unauthenticated resource exhaustion (memory growth, cache eviction)
- Impact: Control-server crash loop; blocking of new-device onboarding org-wide
Tailscale DERP client (relay connection in every agent)
- Unbounded read of a malicious relay's response
- Impact: Ability to position/point a client at a hostile relay
tailscale serve (local service exposure)
- TCP-forward to a unix socket lacks a guard present on the HTTP path; plus a race in per-mount authorization
- Requirement: Operator configures the forward (or a peer races the mount check)
- Impact: Remote administrative-API access to the node; minority of requests bypass app authz
Vendor response and timeline
Tailscale acknowledged receipt of Cyberdione Labs' disclosure on Monday and committed to releasing patches by end of business that same day. The company confirmed the reported issues are "serious" and could permit threat actors with authorized access to perform actions exceeding their configured permissions, including potential privilege elevation.
Most of the Tailscale SSH issues we've identified concern privilege escalation. In some circumstances, someone already authorized to connect over Tailscale SSH may be able to perform actions beyond the permissions of their configured local user, including potentially gaining elevated privileges
Tailscale
Tailscale stated: "These are serious security issues, and we're treating them accordingly. Exploitation depends on the permissions granted to the connecting user or device, the system's configuration, and other conditions. We're continuing to verify the full scope of the findings and which configurations may be affected."
Despite the severity, Tailscale advised against wholesale disabling of its SSH functionality. "If you want to jump to the most important part, based on our current assessment, we're not recommending that everyone disable Tailscale SSH," stated Mike Shaver, VP of Engineering at Tailscale.
Interim mitigation steps
The vendor provided several measures to reduce exposure while patches are being prepared:
- Review SSH access policies. Limit access to the users and devices that need it.
- Disable SSH forwarding if you don't need it. Set TS_SSH_DISABLE_FORWARDING=1 in the tailscaled service environment and restart the service. This disables SSH forwarding without disabling Tailscale SSH entirely, and mitigates several of the more serious findings.
- Review access to sensitive systems. Consider temporarily tightening your Tailscale SSH access policies while we investigate, so that only the specific users and devices that need access can connect.
Tailscale targets a patched release by end of day Tuesday, October 27, and is urging customers to prepare for immediate deployment once the updated client becomes available.