Tailscale SSH Privilege Escalation Vulnerabilities
Multiple privilege escalation and access control bypass vulnerabilities in Tailscale SSH, collectively dubbed Tailworm, allow an authenticated attacker to perform lateral movement and local privilege escalation.
Triage facts
Revision 2- Applicability
- Tailscale client (<= 1.104.2), headscale (<= 0.29.5)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 5 public sources
- Freshness
- Revision 2Oct 27, 16:40 UTC
- Source quality
- B2Likely
Revision history 1 entry · Revision 2
- Revision 2
OS linux
Changed: affected_os, claim_state, lastmod, references, updates
Sources: 1
Tailscale is addressing a series of 11 vulnerabilities collectively dubbed 'Tailworm' affecting the Tailscale client (version 1.104.2 and earlier) and the headscale control server (version 0.29.5 and earlier). The most severe findings involve the Tailscale SSH feature, where improper handling of Unix privileges and SSH forwarding can allow an attacker who has gained a foothold on one device to bypass access policies and escalate to root privileges on target servers within the mesh network. There is currently no evidence of in-the-wild exploitation.
Impact
Successful exploitation allows an attacker to move laterally across the mesh network and achieve root execution on target servers. The vulnerabilities can also lead to the exposure of administrative interfaces, access to cloud metadata services, and potential denial-of-service conditions.
Recommendation
- Disable Tailscale SSH forwarding in existing access policies where not explicitly required as an immediate mitigating measure.
- Review all current Tailscale SSH access policies to limit the potential reach of compromised nodes.
- Patch Tailscale client and headscale control server installations as soon as the vendor releases the finalized versions.
- Monitor for unauthorized device registration or abnormal lateral movement patterns originating from within the mesh VPN environment.
Immediate actions
Disable SSH forwarding in Tailscale access policies
Threat Hunt
Identify unusual SSH sessions originating from unexpected nodes within the Tailscale mesh
Data: Tailscale/Headscale audit logs, SSH connection telemetry
Mitigations
Apply Tailscale client and headscale security patches once released
Tailworm vulnerabilities