Introduction
Tailscale, a software-defined mesh virtual private network (VPN) built on WireGuard, has issued a warning about security vulnerabilities in its SSH server. These vulnerabilities, collectively known as Tailworm, could allow attackers to escalate privileges, crash servers, and steal credentials. This guide provides a comprehensive overview of the vulnerabilities and recommended mitigation strategies.

Overview of the Vulnerabilities
Cyberdione Labs discovered 11 flaws in Tailscale 1.104.2 and the self-hosted headscale v0.29.5 control server. The most critical issue is in Tailscale's SSH server, which could let authorized attackers gain root privileges through Unix-socket forwarding on a targeted tailnet. Tailscale's VP of Engineering, Mike Shaver, emphasized that these are serious security issues and recommended users not to disable the Tailscale SSH feature. Instead, he suggested reviewing SSH access policies, disabling SSH forwarding, and tightening access to sensitive systems. Tailscale aims to release a new version that fixes these issues by the end of Tuesday, October 27, and urged users to prepare for an update.
Mitigation Strategies
To mitigate the vulnerabilities, Tailscale recommended several measures. These include reviewing SSH access policies, limiting access to the users and devices that need it, disabling SSH forwarding if not needed, and setting TS_SSH_DISABLE_FORWARDING=1 in the tailscaled service environment. Users should also review access to sensitive systems and consider temporarily tightening their Tailscale SSH access policies while investigating.
Conclusion
Tailscale's SSH vulnerabilities highlight the importance of security best practices, such as reviewing access policies, disabling unnecessary features, and tightening access to sensitive systems. By following these recommendations, users can help mitigate the risks associated with these vulnerabilities and protect their systems from potential exploitation. For more information, users should refer to Tailscale's official documentation and security advisories.
Tags
Tailscale, SSH, Security Vulnerabilities, Privilege Escalation, Cyberdione Labs, WireGuard, Privilege Escalation Mitigation, Tailscale SSH Features, Tailscale Security Advisories