//security advisory
Tailworm: Tailscale SSH Flaws Fixed in 1.104.4
Tailscale 1.104.4 fixes the confirmed SSH and Serve flaws from the Tailworm report. An attacker on an authorized device with SSH forwarding access could reach root-only sockets on an affected server, even when logged in as an ordinary user. Tailscale published four security bulletins on 28 October 2026. Update affected clients to 1.104.4 or later and review SSH access. The headscale project fixed its separate control-server findings in 0.29.7 on 30 October; stable Tailscale app connectors are not affected.
On this page
Are you affected by Tailworm?
Most of the risk sits with servers that run Tailscale SSH. Find the row that describes you.
You run Tailscale SSH on servers
Linux, or macOS with the open-source tailscaled, and your policy has ssh rules
Act nowUpdate each server to 1.104.4 or later. Until then, narrow SSH access and disable forwarding or Tailscale SSH where possible. Until you update
You run headscale
The self-hosted, open-source control server
Act nowUpdate Tailscale SSH clients to 1.104.4 or later, and the control server to headscale 0.29.7, which fixes the headscale findings. headscale
You use stable app connectors
The released feature, including through the Kubernetes operator
ProtectedTailscale says stable app connectors are not affected. The reported issue concerns Conn25, a pre-production feature that has not shipped.
You forward a port to a Unix socket with tailscale serve
tailscale serve --tcp <port> unix:<path>
Update neededUpdate to 1.104.4 or later. TS-2026-016 fixes Unix backend access to privileged sockets; TS-2026-017 fixes capability headers leaking between HTTP/2 mounts.
You use Tailscale only as a network
No Tailscale SSH, connectors or serve forwards
Low riskNot affected by the main SSH and Serve findings. Keep the client updated and enable auto-update.
You use normal OpenSSH over Tailscale
sshd on the server, Tailscale only carrying the traffic
ProtectedNot affected. Tailscale SSH does not change sshd or authorized_keys, and the researcher found OpenSSH clean for this class of flaw.
What to do
Update affected clients to Tailscale 1.104.4 or later, then review the access they allow. Temporary controls help while you finish the rollout.
Find and update every affected client
Read thesshsection of your tailnet policy, then check each server. Install 1.104.4 or later on SSH servers and Serve nodes with Unix backends or TLS mounts. If you self-host headscale, update it to 0.29.7. How to checkTurn it off where you do not need it
Many teams switched it on fleet-wide for convenience. Every server that does not need it is one less route to root.Narrow the SSH rules you keep
One group to one set of servers, never a whole tag or everyone. Treat each rule as granting root, because limiting logins to non-root users does not stop these flaws. Example ruleConsider turning off SSH forwarding on servers
The main socket finding needs forwarding. TS-2026-014 documents a server setting to disable it while you update. It breaks tools that tunnel over SSH.Verify 1.104.4 is running and enable auto-update
The fixed release is documented in Tailscale’s security bulletins. Check the running version on each server; do not wait for an automatic rollout to confirm protection.
Check your setup
Three places to look: the policy file, each server, and the admin console.
The policy file
Open your tailnet policy in the admin console and read the ssh section. Each rule there lets the devices or people in src log in to the devices in dst. Rules that use a whole tag, autogroup:member or a large group as the source are the ones to narrow first.
Each server
# On each Linux server: is Tailscale SSH turned on, and which version runs?
tailscale debug prefs | grep RunSSH # "RunSSH": true means it is on
tailscale versionTailscale SSH can only run as a server on Linux and on macOS with the open-source tailscaled, according to Tailscale’s documentation. Other platforms cannot accept logins through it.
The admin console
The Machines page can filter for devices with an update available, and shows each device’s version. Use it to find devices below 1.104.4, and which have auto-update turned on.
Until you update
These controls reduce exposure on unpatched clients. Version 1.104.4 is the full fix for the confirmed SSH and Serve issues.
1. Turn Tailscale SSH off where you do not need it
# Turn Tailscale SSH off on a server that does not need it.
# Make sure you have another way in first, or you can lock yourself out.
sudo tailscale set --ssh=falseTailscale’s own warning: make sure you have another way to log in before turning it off. Normal OpenSSH is not affected by these flaws.
2. Make every SSH rule one-to-one
In the researcher’s lab, rules that let one small group reach one set of servers were the only control that stopped the attack spreading. Do not use a whole tag or everyone as the source, and do not grant root or accounts with passwordless sudo. The researcher notes that check mode does not fix a privilege boundary inside an existing session. Tailscale recommends check mode for sensitive systems as an additional access control, alongside updating.
"ssh": [
{
"action": "check",
"src": ["group:db-admins"],
"dst": ["tag:prod-db"],
"users": ["dbadmin"]
}
]3. Turn off SSH forwarding on the server
The root escalation works through SSH forwarding. Tailscale now documents a mitigation in TS-2026-014: a server environment setting that rejects every kind of SSH forwarding. It is read when tailscaled starts, and Tailscale’s Linux service loads it from /etc/default/tailscaled.
# Vendor mitigation for TS-2026-014. Test SSH tunnel dependencies first.
echo 'TS_SSH_DISABLE_FORWARDING=1' | sudo tee -a /etc/default/tailscaled
sudo systemctl restart tailscaled # ends any open Tailscale SSH sessionsThis setting does not fix session memory exhaustion or Serve. It also breaks anything that tunnels over SSH, such as VS Code Remote SSH or database tunnels. Test it on one server first, and confirm with ssh -L that forwarding is refused.
headscale
On headscale 0.29.5, forwarding is granted on every accepted SSH session and cannot be turned off in the policy. headscale 0.29.7 keeps that behavior and points operators to the server setting above. Update the Tailscale client on each SSH server to 1.104.4 or later, even when headscale manages it, because upgrading headscale alone does not apply the SSH fixes. Separately, update the control server to headscale 0.29.7, which fixes the registration and memory exhaustion findings.
App connectors and tailscale serve
- Stable app connectors are unaffected, according to Tailscale. The report’s connector finding concerns unreleased Conn25, where Tailscale has since blocked host-scoped destinations on its main branch.
- Update Serve nodes to 1.104.4. Until then, remove any
tailscale serve --tcpforward that points at a privileged Unix socket, especially/run/tailscale/tailscaled.sock.
These follow the researcher’s interim mitigations, except where the vendor’s four bulletins and the headscale 0.29.7 release now provide confirmed fixes and mitigations.
The findings
The researcher tested Tailscale 1.104.2 and headscale 0.29.5. The severity labels below are hers. Tailscale has confirmed SSH and Serve issues in four bulletins, and its assessment excludes stable app connectors. headscale 0.29.7 fixes the control-server findings.
| Area | What the researcher reports | Who is exposed | Severity | Fix |
|---|---|---|---|---|
| Tailscale SSH socket forwarding (three findings) | A user allowed to SSH in, even to an ordinary account, gets tailscaled, which runs as root, to connect to, replace or race root-only Unix sockets. In the lab this gave a root shell and read /etc/shadow. | Unpatched SSH servers where policy permits the attacker’s session and forwarding. | High | Fixed in 1.104.4 (TS-2026-014): forwarding runs as the authenticated user. |
| Tailscale SSH session churn | Repeated window-size and environment messages grew tailscaled’s memory by about 536 MB in 7 seconds, and it stayed high after disconnecting. | Servers running Tailscale SSH. | High | Fixed in 1.104.4 (TS-2026-015). |
| Conn25 app connectors (unreleased) | A device entitled to one app could reach any destination through the connector, including cloud metadata services and services inside Kubernetes. | Pre-production Conn25. Tailscale confirms stable app connectors are unaffected. | High | Not a released stable feature. Tailscale says the issue was already known; its main branch now blocks internal and metadata destinations, and the researcher notes public-internet egress remains. |
| tailscale serve | A TCP forward to tailscaled’s socket lets other machines change the device’s settings. A separate race can leak app permissions between mounts. | Devices with that forward configured, or serving apps that rely on Tailscale app permissions. | High and Medium | Fixed in 1.104.4 (TS-2026-016 and TS-2026-017). |
| headscale server and DERP relay client | Unauthenticated registrations can push out pending approvals and block new devices from joining. A hostile relay can make a client use about 1.34 GB of memory from a 10 MB response. | Internet-reachable headscale servers, and clients pointed at a hostile relay. | Medium to High | Fixed in headscale 0.29.7 for the server side, and in Tailscale 1.104.4 for the DERP client body read. |
Why the main finding matters
Tailscale SSH runs inside tailscaled, which runs as root, and lets a user forward Unix sockets between their machine and the server. The researcher found that tailscaled does that forwarding as root, not as the logged-in user. An ordinary user can therefore reach sockets only root should reach, such as the Docker socket, and from there take over the server.
This is the same code an earlier bulletin, TS-2026-004, fixed in 1.98.9 by checking where a socket path really leads. Tailworm’s race gets around that check by changing the path between the check and its use.
What an attacker needs first
This is not an attack from the internet. The attacker first needs a foothold on a device that your SSH rules allow to log in, for example through a compromised laptop, a vulnerable web app or a malicious dependency. The report’s point is that Tailscale SSH then turns that one foothold into root on every server the rules reach.
Signs of abuse
Visibility is limited. Tailscale does not log individual SSH forwarding requests, and session recordings capture terminal output, not forwarded traffic.
- Configuration audit log. Look for unexpected devices joining, auth keys created or used outside change windows, and policy edits. Tailscale keeps these for 90 days on every plan. Audit logging
- On servers. The researcher suggests auditing Unix socket creation, deletion and permission changes in
/tmp, home folders and/run/user, and alerting on bursts of renames there. - Session recordings, if you use them, show what was typed into a terminal. A session that only forwards sockets leaves nothing to watch. Session recording
If you find signs of a compromise, the researcher advises deleting the device in the admin console rather than only rebuilding it, because a rebuild does not revoke a device key an attacker has already copied. Then rotate auth keys and review recent policy changes.
The pre-patch investigation found that policy revocation could leave forwarding-only sessions open. Restart tailscaled on an unpatched node, and revoke any compromised device at the control plane rather than relying only on a policy edit. tailscale/tailscale #21944
Fix status
Tailscale 1.104.4 fixes the confirmed SSH and Serve issues documented in four vendor bulletins. As of 5 November 2026, the newest client is 1.104.5 and the newest headscale is 0.29.7.
- SSH forwarding. TS-2026-014 moves Unix socket operations into the authenticated user’s permissions. TS-2026-015 bounds SSH session memory and releases it on disconnect.
- Serve. TS-2026-016 restricts Unix backend access to privileged sockets and checks targets on each dial. TS-2026-017 isolates capability headers per HTTP/2 request.
- Separate findings. Stable app connectors are unaffected. The report concerns unreleased Conn25. headscale 0.29.7, released on 30 October, fixes the control-server findings and bounds the DERP client body read through its Tailscale 1.104.4 dependency. The researcher now marks both sides of that finding as fixed.
- Rollout. Update every affected client and verify the running version. The researcher dates the release tag to 27 October; GitHub records publication at 01:05 UTC on 28 October, when Tailscale published its findings and fixes. Tailscale 1.104.5 followed on 2 November with SSH reliability fixes and no new security bulletin.
Vendor findings and fixes · Security bulletins · headscale 0.29.7
Auto-update, set per device with tailscale set --auto-update, usually installs a release about a week after it ships, sooner for important security fixes. It does not survive restarts in containers. Tailscale update docs
Where the sources differ
The report was published without coordination, and early coverage gets some details wrong. Here is what each source says and how we read it.
| Question | What the sources say | Our reading |
|---|---|---|
| Can hosted Tailscale turn off SSH forwarding per rule? | The researcher and Cybersecuritynews say to set each rule’s forwarding fields to false. Tailscale’s documented SSH rule fields are action, src, dst, users, checkPeriod and acceptEnv, with no forwarding setting. | TS-2026-014 now endorses TS_SSH_DISABLE_FORWARDING=1 in the service environment. Upgrade to 1.104.4 for the full set of fixes. |
| How easy the root escalation is | Cybersecuritynews says an ordinary session gained root almost instantly. The report shows that only with a root socket inside the allowed folders. Against the standard Docker socket it needed a race, and one route to a root shell worked 0 to 4% of the time. | Serious and real, but not equally quick on every server. Treat it as root access anyway. |
| Whether every device sees every other device | The report says each node receives the full peer list. A Tailscale engineer says its hosted service only sends a device the peers its policy lets it reach. | This is probably a difference between headscale and hosted Tailscale. |
| Whether it is wormable | The report measured automatic spread across a lab tailnet with broad SSH rules. Tailscale describes policy-limited lateral movement, not self-replicating malware. | It spreads only as far as your SSH rules allow. One-to-one rules stopped it in the researcher’s lab. |
| Whether Tailscale has responded | Early coverage preceded the vendor response. Tailscale has now published its findings, four security bulletins and client 1.104.4, and headscale has released 0.29.7. | The vendor responses supersede the early no-patch reports for the confirmed SSH, Serve and headscale flaws. Conn25 is unreleased and stable connectors are unaffected. |
The sources reviewed on 5 November did not report attacks in the wild. The report describes detailed lab reproductions. The researcher says the report was sent to Tailscale but not coordinated.
Timeline
Times are UTC.
- 2026-04-07
2026-04-07
Tailscale SSH gains Unix socket forwarding, the code behind the main finding. It first ships in 1.98.0.
- 2026-10-21
2026-10-21
Tailscale releases 1.104.2, the version the researcher tested. It is the lab-tested vulnerable release.
- 2026-10-23
2026-10-23 · 23:35 UTC
The first related Tailscale SSH hardening change appears in Tailscale’s public code.
- 2026-10-25
2026-10-25 · 00:39 UTC
Tailscale merges a fix for the tailscale serve permissions race. It later ships in 1.104.4.
2026-10-25 · 00:59 UTC
The Tailworm report is shared publicly. The researcher says it was reported to Tailscale but not coordinated.
2026-10-25 · 01:38 UTC
A Tailscale engineer says the team has been working on it and more details will follow.
2026-10-25 · 17:24 UTC
Tailscale opens a change that moves SSH forwarding out of the root process, the fix the researcher recommends.
- 2026-10-28
2026-10-28 · 01:05 UTC
GitHub publishes Tailscale 1.104.4. Tailscale’s findings-and-fixes post follows with TS-2026-014 through TS-2026-017 and confirms stable app connectors are unaffected.
- 2026-10-30
2026-10-30 · 09:55 UTC
headscale releases 0.29.7, a security release that fixes the Tailworm control-server findings and moves its Tailscale dependency to 1.104.4.
- 2026-11-03
2026-11-03 · 00:29 UTC
GitHub publishes Tailscale 1.104.5, a follow-up release with Tailscale SSH reliability fixes. Tailscale’s changelog dates it 2 November.
Recording it for compliance
Tailscale SSH is often how a team grants admin access to servers, so auditors will treat this as a privileged-access issue. Record the client versions deployed, the access review and, if you self-host headscale, its upgrade to 0.29.7.
| Framework | Control | What to record |
|---|---|---|
| ISO 27001:2022 | A.8.2 | Privileged access rights. Record that Tailscale SSH grants are treated as root access, and who holds them. |
| ISO 27001:2022 | A.5.15, A.5.18 | Access control and access rights. Keep the policy file before and after you narrowed the SSH rules. |
| ISO 27001:2022 | A.8.8 | Technical vulnerabilities. Record each affected client’s upgrade to 1.104.4 or later, and any headscale server’s upgrade to 0.29.7. |
| ISO 27001:2022 | A.8.15, A.8.16 | Logging and monitoring. Note that SSH forwarding is not logged, and what you monitor instead. |
| ISO 27001:2022 | A.5.19, A.5.21 | Supplier and supply chain security. Track Tailscale’s bulletin and the fixed version. |
| SOC 2 | CC6.1, CC6.3 | Logical access and least privilege. |
| SOC 2 | CC7.1, CC7.2 | Identifying the vulnerability and monitoring. |
| SOC 2 | CC9.2 | Vendor risk for Tailscale. |
Evidence to keep: the date you assessed it, the list of servers with Tailscale SSH and what you decided for each, the policy file before and after, any server settings you changed, and the date you installed the fixed release.
For how these controls work day to day, see our guides to ISO 27001 vulnerability management, SOC 2 vulnerability management and SOC 2 third-party risk.
Tailworm FAQ
Short answers. The sections above have the detail and sources.
What is Tailworm?
Tailworm is Erica Windisch’s report on Tailscale 1.104.2 and headscale 0.29.5. The confirmed SSH socket flaws let an authorized session with forwarding access reach root-only sockets. Tailscale 1.104.4 fixes the confirmed SSH and Serve issues; headscale 0.29.7 fixes the separate headscale server findings and the DERP client issue. Stable app connectors are unaffected.
Is there a patch for the Tailworm flaws?
Yes. Tailscale 1.104.4 fixes the confirmed SSH and Serve issues, documented on 28 October 2026 in TS-2026-014 through TS-2026-017. Update the Tailscale client on each affected server to 1.104.4 or later. Self-hosted headscale servers should also move to 0.29.7, which fixes the separate headscale server findings; updating headscale alone does not patch its Tailscale SSH clients.
Am I affected if I do not use Tailscale SSH?
Not by the main socket privilege-escalation finding, which requires Tailscale SSH, policy-authorized access and forwarding. Normal OpenSSH over Tailscale is unaffected by that finding. Serve and relay-client issues have separate conditions. Stable app connectors are unaffected; the connector report concerns unreleased Conn25. Update clients to 1.104.4 or later.
Does limiting Tailscale SSH to non-root users (autogroup:nonroot) protect me?
Not on an unpatched server. The researcher reached root from unprivileged accounts through forwarding. Tailscale 1.104.4 fixes forwarding to run with the authenticated user's permissions. Until each server is updated, restrict SSH grants and disable forwarding where possible.
Can I turn off SSH forwarding in my Tailscale policy?
The documented policy syntax does not expose a forwarding switch. Tailscale now officially recommends TS_SSH_DISABLE_FORWARDING=1 in the tailscaled service environment, followed by a restart, as a mitigation for TS-2026-014. It breaks SSH tunnels and does not replace the 1.104.4 update, which also fixes session memory exhaustion and Serve issues.
Is Tailworm being exploited?
The sources reviewed on 5 November 2026 did not report attacks in the wild. Tailscale confirms that exploitation requires a foothold on an authorized device and SSH access permitted by policy; the socket flaw also requires forwarding access. The vendor describes this as policy-limited lateral movement, not a self-spreading worm.
Does Tailworm affect headscale?
Yes, with two separate actions. Update Tailscale SSH clients managed by headscale to 1.104.4 or later to fix the client SSH flaws; headscale still grants forwarding on every SSH session, so set TS_SSH_DISABLE_FORWARDING=1 where forwarding is not needed. Update the control server to headscale 0.29.7, released on 30 October 2026, which fixes the registration and resource-exhaustion findings.
Sources
- Tailscale: Findings and fixes, 28 October 2026Vendor assessment, release 1.104.4, policy requirements and the Conn25 clarification.
- Tailworm report, Erica Windisch, Cyberdione LabsAll eleven findings, the lab results, severities and interim mitigations.
- Tailscale SSH documentationSupported platforms, how to turn it off, and how SSH rules work.
- Tailscale policy file syntaxThe fields an SSH rule accepts.
- Tailscale security bulletinsTS-2026-014 through TS-2026-017 document confirmed issues and the 1.104.4 fixes.
- Tailscale changelogThe 1.104.4 fixes, and 1.104.5 as the newest client on 5 November 2026.
- headscale v0.29.7 release notes, 30 October 2026The headscale security release for the Tailworm control-server findings.
- Tailscale releasesThe newest version, to compare against the fixed release.
- tailscale/tailscale #21942The forwarding privilege-separation change included in the fixed release.
- Tailscale engineer on Hacker NewsTailscale’s first public response, and the peer-list point.
- Researcher on Hacker NewsWhich findings matter most, in the researcher’s view.
- Cybersecuritynews, 25 October 2026The news report that brought this to wide attention.