Tailscale Warns of Eleven SSH Flaws Enabling Root Privilege Escalation

Tailscale is working to patch nearly a dozen security vulnerabilities that could allow attackers to steal credentials, crash servers, and gain root privileges. The flaws, collectively known as Tailworm, were discovered by Cyberdione Labs during a security audit of Tailscale 1.104.2 and the self-hosted headscale v0.29.5 control server. Tailscale builds a software-defined mesh VPN on WireGuard that connects computers, servers, and cloud instances into an encrypted network called a tailnet.

The most critical issue resides in Tailscale's embedded SSH server, which runs as root. Attackers with one approved device and a single SSH policy rule can exploit flaws in Unix-socket forwarding to execute code with root privileges, capture enrollment keys, or delete arbitrary root-owned files. The researchers note that forwarding is granted automatically on headscale deployments, making those setups especially exposed.

Additional flaws affect Tailscale's experimental app connectors, which forward traffic to attacker-chosen destinations without validating ACLs, potentially exposing cloud metadata credentials and internal networks. The self-hosted headscale server also faces unauthenticated resource exhaustion attacks. Cyberdione Labs publishes the details publicly, arguing that rapid awareness will expedite remediation across impacted devices.

Read More at the original source →