Tailscale SSH Flaws Enable Root Privilege Escalation (Tailworm)
What It Is — The Tailscale security team disclosed a set of eleven vulnerabilities, collectively dubbed Tailworm, affecting both the SaaS‑hosted Tailscale client (v1.104.2) and the self‑hosted Headscale control server (v0.29.5). The most severe issue resides in Tailscale’s embedded SSH server (the tailscaled daemon) which runs as root. By abusing Unix‑socket forwarding (ssh -R / -L) the attacker can race privileged file‑system checks, replace or delete resources, and ultimately achieve arbitrary code execution with root privileges on any target node in the tailnet.
Other findings include:
- Connector misuse – experimental “app connectors” forward traffic to attacker‑chosen destinations without consulting network ACLs, exposing cloud metadata and internal services.
- Headscale resource exhaustion – unauthenticated memory‑growth attacks can crash the control server, halting onboarding for the entire organization.
- DERP client unbounded read – a malicious relay can cause client‑side memory exhaustion.
- Local service exposure (
tailscale serve) – a race condition in Unix‑socket forwarding can bypass HTTP‑level authorization, granting remote API access.
All flaws were reproduced on unmodified releases in a lab environment, confirming that they are not theoretical. Cyberdione Labs reported the issues to Tailscale, which acknowledged their seriousness and began preparing patches. The vendor plans to release a patched client by the end of October 27 2026 and urges users to apply the update immediately.
Affected Products – Tailscale client v1.104.2 (SaaS) and Headscale self‑hosted control server v0.29.5.
Why It Matters for Trust & Control Assurance – The SSH privilege‑escalation flaw directly challenges the access control control objective: ensuring that only authorized identities can perform privileged actions. Demonstrating robust identity‑based policy enforcement and continuous verification of SSH configurations is a single control that maps to many frameworks (e.g., NIST CSF 2.0, ISO 27001).
Recommended Actions –
- Audit SSH policies – Review and tighten Tailscale SSH access rules; restrict forwarding to only those devices and users that truly need it.
- Disable forwarding where unnecessary – Set the environment variable
TS_SSH_DISABLE_FORWARDING=1on thetailscaledservice and restart. - Prioritize patching – Deploy the forthcoming Tailscale client update as soon as it is published; for Headscale, apply any hot‑fixes or upgrade to a patched version.
- Validate post‑patch posture – After updating, verify that root‑level execution via socket forwarding is no longer possible (e.g., attempt a controlled test with a non‑privileged user).
- Monitor for abnormal activity – Enable logging of SSH sessions and forward‑related events; integrate logs into a SIEM for real‑time alerts.
Source: BleepingComputer article