Threat reportVulnerabilityTL-2026-4542
Tailscale 'Tailworm' Vulnerabilities (11 Findings in Tailscale SSH, App Connectors, Serve, DERP and Headscale) Allowing Root Privilege Escalation (Tailscale v1.104.2, Headscale v0.29.5)
Cyberdione Labs (Erica Windisch) disclosed 11 findings, named 'Tailworm', in Tailscale v1.104.2 and headscale v0.29.5 that include root privilege escalation via Tailscale SSH socket forwarding, ACL bypass in app connectors, authkey capture and rogue device enrollment via a TOCTOU race, and memory-exhaustion denial of service.
Key facts for Tailworm Tailscale SSH flaws
| Identifiers | TL-2026-4542 |
|---|---|
| Also known as | Tailworm |
| Severity | HIGH |
| First disclosed | |
| Exploitation status | Public proof-of-concept exploit |
| Affected products | Tailscale Tailscale client (tailscaled, Tailscale SSH, app connectors, serve/funnel, DERP client); juanfont headscale; Tailscale gliderssh (SSH library) |
| Weaknesses (CWE) | CWE-367, CWE-269, CWE-400, CWE-59, CWE-770 |
| Tools | Tailscale |
| MITRE ATT&CK techniques | T1021.004 Remote Services: SSH, T1068 Exploitation for Privilege Escalation, T1070.004 Indicator Removal: File Deletion, T1078 Valid Accounts, T1090 Proxy, T1098 Account Manipulation, T1485 Data Destruction, T1499.001 Endpoint Denial of Service, T1550 Use Alternate Authentication Material, T1552 Unsecured Credentials, T1552.005 Unsecured Credentials, T1557 Adversary-in-the-Middle and 3 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, cloud, enterprise, devops |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 6 cited sources |
Detection coverage for Tailworm Tailscale SSH flaws
As of 2026-10-31, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4542 across Splunk SPL, Microsoft KQL and Sigma, covering 20 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Tailworm - Root tailscaled Creating or Deleting Sockets and Files Outside Its Own Directories
Detects the root tailscaled process creating or deleting files under /run/user, /tmp, /var/tmp, /home or /root, or creating or deleting any .sock file outside /run/tailscale. This is the host-side effect of Tailworm T2/T3 (BindUnlink socket replacement, privileged unix socket writes) and the T2-RACE/T3-RACE arbitrary file deletion primitive in the critical chain, which can precede an HTTP man-in-the-middle on the control socket.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1068, T1070.004
- Data sources: sysmon_linux, linux_file_events
- Severity: high
- Confidence: high
Splunk SPL
index=sysmon_linux sourcetype="sysmon:linux" (EventCode=11 OR EventCode=23) Image="*/tailscaled"
| where (match(TargetFilename, "^(/run/user/|/tmp/|/var/tmp/|/home/|/root/)") OR match(TargetFilename, "[.]sock$")) AND NOT match(TargetFilename, "^/(var/)?run/tailscale/")
| eval action=if(EventCode=23, "delete", "create")
| stats count min(_time) as first_seen max(_time) as last_seen values(TargetFilename) as files by host, User, action
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ("FileCreated", "FileDeleted")
| where InitiatingProcessFileName =~ "tailscaled"
| where FolderPath startswith "/run/user/" or FolderPath startswith "/tmp/" or FolderPath startswith "/var/tmp/" or FolderPath startswith "/home/" or FolderPath startswith "/root/" or FileName endswith ".sock"
| where not(FolderPath startswith "/run/tailscale" or FolderPath startswith "/var/run/tailscale")
| project Timestamp, DeviceName, ActionType, FolderPath, FileName, InitiatingProcessFileName, InitiatingProcessAccountName, InitiatingProcessCommandLineSigma
title: Tailworm Root tailscaled File Activity Outside Its Directories
id: 8b2d5f16-7c30-4e9a-b1d4-0a6e3c9f7d02
status: experimental
description: Detects tailscaled creating files under user, temp or home paths, or creating .sock files outside /run/tailscale. This matches the Tailworm T2/T3 socket replacement and the race-based file deletion primitive (T2-RACE, T3-RACE).
references:
- https://tailworm.com/
- https://tailscale.com/ssh-investigation-update
author: AII-Detector — ThreadLinqs Intelligence
date: 2026/10/27
tags:
- attack.privilege-escalation
- attack.defense-evasion
- attack.t1068
- attack.t1070.004
logsource:
category: file_event
product: linux
detection:
selection_img:
Image|endswith: '/tailscaled'
selection_path_user:
TargetFilename|startswith:
- '/run/user/'
- '/tmp/'
- '/var/tmp/'
- '/home/'
- '/root/'
selection_path_sock:
TargetFilename|endswith: '.sock'
filter_own:
TargetFilename|startswith:
- '/run/tailscale/'
- '/var/run/tailscale/'
condition: selection_img and 1 of selection_path_* and not filter_own
falsepositives:
- Taildrop or state directories configured under a non-default path
- Custom tailscaled --socket paths outside /run/tailscale
level: high
Known false positives:
- tailscaled configured with a non-default --socket or --statedir under /tmp, /home or /root
- Lab hosts running tailscaled in userspace mode with state kept in a user directory
Tuning notes: Add your custom tailscaled --socket and --statedir paths to the allowlist. Requires Sysmon for Linux FileCreate (11) and FileDelete (23) rules, or MDE for Linux file telemetry. The Sigma flavor covers file creation only. Treat hits on /run/docker.sock, /run/user/*/ sockets or other root-owned sockets as critical and review the originating SSH session.
- Tailworm - Filesystem Rename Storm in [indicator] or [indicator] (T2-RACE/T3-RACE TOCTOU Exploitation) · unlock with TL Creds
- Tailworm - Non-Tailscale Tool Talking to [indicator].sock (Control Socket MITM and Authkey Capture) · unlock with TL Creds
- Tailworm - [indicator] Connecting to Cloud Metadata Endpoints (App Connector ACL Bypass, C1) · unlock with TL Creds
- Tailworm - Kernel OOM Kill of [indicator] (Session Memory Exhaustion, T1) · unlock with TL Creds
- Tailworm - tailscale up/login with Auth Key on Command Line (Rogue Device Enrollment) · unlock with TL Creds
- Tailworm - tailscale funnel Exposure Command (Client-Side-Only Entitlement, SERVE-F-3) · unlock with TL Creds
- Tailworm - ssh -L/-R Forwarding to Unix Socket Paths (Tailscale SSH Root Escalation, T2/T3) · unlock with TL Creds
- Tailworm - tailscale serve --tcp to Unix Socket and [indicator] Exposure · unlock with TL Creds
Indicators of compromise for Tailworm Tailscale SSH flaws
As of 2026-10-31, Threadlinqs Intelligence tracks 20 indicators of compromise for TL-2026-4542.
Sample indicators (1 of 20)
- File hash:
eba00ab3638983a0c274e2ea271476c80fcd8acf
Defanged, TLP:CLEAR. Full set of 20 indicators: unlock with TL Creds.
How Tailworm Tailscale SSH flaws works
No CVEs have been assigned and no in-the-wild exploitation has been reported.
Tailworm is a set of 11 findings from a security assessment of Tailscale v1.104.2 and headscale v0.29.5 run October 22-24, 2026 by Cyberdione Labs Corporation (founder Erica Windisch). Tailscale published a heads-up on October 26, 2026 saying someone already authorized to connect over Tailscale SSH may be able to act beyond the permissions of their configured local user, including gaining elevated privileges. Public disclosure followed on October 27, 2026 at tailworm.com and was covered by BleepingComputer. Fixes had been merged into the upstream tailscale/tailscale and tailscale/gliderssh main branches before a numbered release. Tailscale targeted a patched client release for the end of October 27, 2026. Headscale's fix was pending a registration-cache rework (PR #3586). No CVE identifiers or CVSS scores have been assigned.
Tailscale SSH findings (gliderssh and tailscaled): T3 lets a peer holding an SSH policy rule that allows local forwarding use 'ssh -L' so that tailscaled, running as root, dials or writes to privileged unix sockets. T2 lets a peer with a remote-forwarding policy use 'ssh -R' with BindUnlink so that root replaces root-owned sockets. The T2-RACE and T3-RACE findings are a time-of-check/time-of-use race that defeats the path allowlist. The report's critical chain is a raced rebind held for four minutes or longer. This gives an HTTP man-in-the-middle on the control socket and byte-exact authkey capture. The authkey is then used on a scratch node to enroll a rogue device under the victim's identity. The same race can also be used for arbitrary file deletion. T1 is a window-change and environment churn issue in session handling that makes the root daemon run out of memory (about 536 MB in 7 seconds) from an authenticated SSH session.
App connector, control server, DERP and serve findings: C1 (conn25 app connectors) lets a user granted the app capability choose unrestricted egress destinations. That bypasses network ACLs and exposes cloud metadata services and internal LANs. C2, C3 and C4 (headscale v0.29.5 and the DERP client) cover memory exhaustion, auth-cache eviction and unbounded response reads, reachable by an insider or an attacker positioned as a relay. SERVE-F-1 lets a remote peer reach permit-write localapi through 'tailscale serve --tcp' forwarding to the agent socket. SERVE-F-2 is a symlink race against an isTailscaledSocket guard that is checked only at configuration time. SERVE-F-3 is client-side-only funnel entitlement enforcement. SERVE-F-4 is a configuration note: TS_SERVE_ALLOW_ALL_INTERFACES exposes serve outside the tunnel to the LAN. SERVE-F-5 is an h2 shared-context race that leaks capabilities across mounts and bypasses authorization.
Exploitation mostly requires an already authorized tailnet identity or device, or a specific operator configuration. The findings are therefore insider-threat and lateral-movement risks rather than unauthenticated remote exploits. Severity HIGH is an analyst estimate based on root-escalation impact; it is not a vendor-assigned rating. Stolen node state can persist after reimaging, so the report recommends deleting compromised devices at the control plane.
MITRE ATT&CK techniques by tactic:
Lateral Movement
T1021.004 Remote Services: SSH; T1550 Use Alternate Authentication Material
Privilege Escalation
T1068 Exploitation for Privilege Escalation; T1611 Escape to Host
Defense Evasion
T1070.004 Indicator Removal: File Deletion
Initial Access
Command and Control
T1090 Proxy; T1572 Protocol Tunneling
Persistence
Impact
T1485 Data Destruction; T1499.001 Endpoint Denial of Service
Credential Access
T1552 Unsecured Credentials; T1552.005 Unsecured Credentials; T1557 Adversary-in-the-Middle
Execution
Remediation for Tailworm Tailscale SSH flaws
Patches
- Upgrade the Tailscale client to the release following v1.104.2 (targeted end of 2026-10-27)
- Upgrade headscale beyond v0.29.5 once the registration-cache rework (PR #3586) is released
- Pull the gliderssh session memory fix
Immediate actions
- Set TS_SSH_DISABLE_FORWARDING=1 on Tailscale SSH hosts
- Review and restrict Tailscale SSH access policies to necessary users and devices; use per-pair SSH rules and remove identity-wide or tag-wide accepts
- Audit 'tailscale serve' configuration for unix-socket forwards and avoid TS_SERVE_ALLOW_ALL_INTERFACES
- Delete compromised devices at the control plane; reimaging alone is insufficient
Workarounds
- Tighten Tailscale SSH access temporarily; Tailscale does not recommend disabling Tailscale SSH entirely
Longer-term hardening
- Apply a kernel-layer (netfilter) destination allowlist on app connector hosts
- Enforce node-key expiry and TPM or Secure Enclave key binding
- Monitor for same machine key appearing from a new network or ASN and for unrequested Tailscale authentication prompts
Affected and fixed versions
- Tailscale — Tailscale client (tailscaled, Tailscale SSH, app connectors, serve/funnel, DERP client)
Vulnerable versions: 1.104.2
Fixed in: Release following 1.104.2 (targeted 2026-10-27) - juanfont — headscale
Vulnerable versions: 0.29.5
Fixed in: Pending registration-cache rework (PR #3586) - Tailscale — gliderssh (SSH library)
Vulnerable versions: Versions prior to upstream main-branch fix
Fixed in: Upstream main branch (session memory fix merged)
Timeline of Tailworm Tailscale SSH flaws
Last updated · revalidated 1× · latest source
- Tailscale client v1.104.2, the version audited by Cyberdione Labs, is released.
- Cyberdione Labs begins a security assessment of Tailscale v1.104.2 and headscale v0.29.5
- Windisch sends the Tailworm report and proof-of-concept code to Tailscale's security contact; Tailscale's blog dates receipt of the report to October 24.
- Assessment concludes with 11 findings across Tailscale SSH, app connectors, serve/funnel, DERP and headscale
- Tailscale releases v1.104.4 with fixes for four Tailscale SSH issues (bulletins TS-2026-014 to TS-2026-017) and three tailscale serve/Funnel bugs.
- Root-cause fix (commit eba00ab) lands on tailscale main, routing SSH forwarding through the privileged monitor and running child processes at user privilege.
- Tailscale publishes an SSH investigation update warning that authorized SSH users may exceed their local user permissions and may gain elevated privileges; recommends locked-ioc-8
- Tailscale publishes an investigation update calling the issues 'serious security issues'; VP Engineering Mike Shaver says the company was already examining these areas with outside specialists. No CVE is assigned.
- Tailscale targets a patched client release by end of day; headscale fix remains pending the registration-cache rework (PR #3586)
- BleepingComputer reports that Tailscale warned of the Tailworm SSH flaws allowing root privilege escalation
- Cyberdione Labs publishes the Tailworm report at tailworm.com; fixes are merged upstream in tailscale/tailscale and tailscale/gliderssh ahead of a numbered release
- Tailscale publishes its blog post on SSH findings and fixes, recommending v1.104.4 or later and noting that conn25 retains a known pre-production issue.
Update history
- 2026-10-31 — Tailworm: Tailscale SSH Unix-Socket Forwarding Privilege Escalation to Root and 10 Related Findings (locked-ioc-11 / locked-ioc-12) - Fixed in Tailscale 1.104.4: What changed Exploitability THEORETICAL → POC_PUBLIC (the researcher published PoC scripts and directories). A patched client release, Tailscale v1.104.4 (2026-10-26), now exists with security bulletins TS-2026-014 to TS-2026-017 and root-c
Sources cited for Tailworm Tailscale SSH flaws
- Tailworm - Cyberdione Labs vulnerability report tailworm.com · Research · 2026-10-27
- Tailscale SSH investigation update tailscale.com · Vendor report · 2026-10-26
- Tailscale GitHub repository (upstream fixes) GitHub · Code repository · 2026-10-27
- gliderssh GitHub repository (session memory fix) GitHub · Code repository · 2026-10-27
- headscale PR #3586 registration-cache rework GitHub · Code repository · 2026-10-27
- Tailscale warns of SSH flaws allowing root privilege escalation (BleepingComputer) BleepingComputer · News · 2026-10-27
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 6 sources; published ; last updated .