Tailworm: 11 Unpatched Tailscale and headscale Flaws Could Enable Root Access

The Tailworm security report, published on October 25, 2026, describes 11 findings in Tailscale 1.104.2 and headscale 0.29.5. The most notable risk involves Tailscale SSH: a compromised device that policy permits to connect could become a lateral-movement foothold, reaching privileged resources on other servers without stealing passwords or SSH keys.

The Tailworm technical report on Tailscale and headscale
The Tailworm report tested Tailscale 1.104.2 and headscale 0.29.5 in a lab. Screenshot from Cyberdione Labs' original report.

What Is Tailworm?

Tailworm là báo cáo đánh giá do Erica Windisch của Cyberdione Labs công bố sau giai đoạn kiểm thử từ ngày 22 đến 24/10/2026. Nhóm nghiên cứu cho biết các phát hiện được tái hiện trên phần mềm phát hành nguyên bản, gồm tiến trình tailscaled, máy chủ Tailscale SSH tích hợp, Serve/Funnel, ứng dụng kết nối thử nghiệm conn25, máy khách DERP và máy chủ điều khiển headscale.

At publication time, the findings had no CVE identifiers, confirming bulletin, or fixed version from Tailscale. They should therefore be treated as independent lab results, not an official vendor advisory. When checked, Tailscale's security bulletin page still listed TS-2026-013 from October 21 as its newest entry.

The Attack Is Not Internet-Based RCE

The most dangerous chain does not let an arbitrary internet user immediately take over a server. An attacker must first control an approved tailnet device, and SSH policy must permit that device to reach the target. The weakness turns an initial foothold into lateral movement and privilege escalation inside the trusted network.

Tailscale SSH relies on a WireGuard-authenticated device identity instead of requiring a user password or key during the SSH session. This simplifies operations but increases the consequences when a valid endpoint is compromised: malware on that endpoint may inherit the access scope granted to the device.

Three Tailscale SSH Findings Could Lead to Root

Ba phát hiện đầu liên quan chuyển tiếp Unix socket qua ssh -L and ssh -R. Theo báo cáo, tiến trình Tailscale chạy với quyền root thực hiện kiểm tra đường dẫn và thao tác socket mà không hạ đặc quyền đầy đủ. Điều này có thể cho phép một phiên SSH thông thường kết nối tới socket chỉ dành cho root, thay thế socket thuộc sở hữu root hoặc khai thác điều kiện tranh chấp TOCTOU để vượt danh sách đường dẫn cho phép.

In the lab, these techniques enabled interaction with privileged sockets such as Docker, containerd, or systemd, leading to administrative control of the target. The report also describes capturing device-enrollment material to add a rogue node to the tailnet. Real-world impact depends heavily on SSH policy, target accounts, and privileged services present on each host.

App Connector and Serve Expand the Trust Boundary

For the experimental conn25 app connector, the researcher says a device holding the relevant capability can select destinations beyond the operator's intended scope, including cloud metadata services or internal networks. If applicable to a specific deployment, this gap could expose virtual-machine credentials or provide access to Kubernetes services that were not meant to be allowed.

Một nhóm phát hiện khác nhắm vào tailscale serve. Cấu hình chuyển tiếp TCP tới Unix socket có thể làm lộ API quản trị cục bộ cho peer từ xa, trong khi một điều kiện tranh chấp ở ngữ cảnh Serve dùng chung có thể gây vượt kiểm soát ở cấp mount trong một tỷ lệ yêu cầu nhất định. Đây là rủi ro có điều kiện, cần cấu hình hoặc trạng thái tranh chấp phù hợp chứ không tự động xuất hiện trên mọi node.

headscale and DERP Face Denial-of-Service Risks

For headscale 0.29.5, Tailworm describes unauthenticated paths that cause unbounded memory growth and cache disruption when the control server is reachable from the attacker's network. The primary impact is a crash loop or organization-wide disruption of new-device enrollment rather than direct data theft.

The DERP client is also alleged to read an unbounded response from a malicious relay, exhausting the agent process's memory. This scenario requires an attacker to make the client connect to a relay they control, so its prerequisites differ from a directly exposed headscale server.

Why Can One Compromised Device Spread So Quickly?

In the experiment, the Tailscale SSH chain could spread to every device permitted by existing policy in under one second per hop and without user interaction. That speed comes from the mesh already distributing device identities and connection paths; the alleged flaws exploit that trust boundary to turn ordinary access into privileged operations.

The report identified two controls that materially limited scope: grants for individual source-destination pairs and hardware-bound device credentials such as TPM or Secure Enclave. Other measures mainly improved visibility, shortened detection time, or reduced persistence.

What Should Organizations Do Before a Fix?

  • Review all Tailscale SSH policies, replace broad identity- or tag-based grants with specific source-destination pairs, and avoid privileged target accounts unless strictly necessary.
  • Disable SSH forwarding in each SaaS rule. For headscale 0.29.5, treat every SSH grant as high risk because the report says forwarding cannot be disabled.
  • Tắt Tailscale SSH trên node không sử dụng bằng tailscale set --ssh=false, nhưng phải xác nhận trước một kênh truy cập thay thế để tránh tự khóa hệ thống.
  • Remove unnecessary app-connector capabilities and enforce kernel-level destination allowlists or default-deny Kubernetes egress policies.
  • Kiểm tra các cấu hình Serve chuyển tiếp tới Unix socket; không bật TS_SERVE_ALLOW_ALL_INTERFACES và loại bỏ đích trỏ vào socket quản trị đặc quyền.
  • Set memory limits, supervise restarts, and place rate limiting in front of headscale; keep the control server off the public internet unless exposure is required.

Responding to a Suspected Compromised Node

Reinstalling the operating system is insufficient if a node's keys were copied. Responders should delete the device at the control plane to revoke its identity, enable node-key expiry, and rotate Tailnet Lock if the compromised node held a signing role. Logs should be stored on infrastructure the suspected host cannot alter or erase.

Threat hunting should focus on unexpected Tailscale SSH sessions, socket changes, processes interacting with Docker/containerd/systemd, new Serve configurations, and newly enrolled devices. Teams should distinguish evidence of a compromised node from proof that a flaw was exploited to avoid overclaiming.

Caution Is Required While the Findings Remain Unconfirmed

Tailworm was published without coordinated disclosure, and Tailscale had not issued a detailed technical assessment when this article was compiled. Public discussion has also questioned the severity and threat assumptions. Organizations should therefore treat the report as a risk signal to validate in their own environments and monitor official advisories rather than assume every Tailscale deployment is compromised.

Even if the vendor's final assessment changes the scope, narrowing SSH grants, hardware-protecting keys, isolating the control plane, and monitoring from outside the target remain sound defensive practices. The central lesson is that zero trust works only when each endpoint's privileges are small enough that one compromised device cannot become a key to the entire infrastructure.

VNCyberS compiled from Cyberdione Labs, Tailscale, and The Hacker News

Contact Us

Email: [email protected]
Phone: +84 903260277