CVE-2022-41924: Tailscale.com Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-vqp6-rc3h-83cp
CVSS 9.6
CWE-346 CWE-352
Published
Advisory Summary

CVE-2022-41924 is a CRITICAL (CVSS 9.6) remote code execution vulnerability (CWE-346: Origin Validation Error) affecting Tailscale.com libraries in the Go ecosystem. The issue involves tailscale windows daemon is vulnerable to rce via csrf. Remediation is available by upgrading affected packages to version 1.32.3.

CVE-2022-41924 at a Glance

CVE Identifier CVE-2022-41924
GHSA Identifier GHSA-vqp6-rc3h-83cp
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-346: Origin Validation Error
Affected Product Tailscale.com
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2022-41924

To remediate this vulnerability, upgrade all affected Tailscale.com dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tailscale.com fixed: 1.32.3
Upgrade tailscale.com to 1.32.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tailscale.com

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-41924, inspect your project dependencies for Tailscale.com:

inspect dependencies for tailscale.com

Analyze the terminal output to locate any version of Tailscale.com in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.32.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-346: Origin Validation Error, where the product does not properly verify that the source of data or communication is valid. In Tailscale.com, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability identified in the Tailscale Windows client allows a malicious website to reconfigure the Tailscale daemon `tailscaled`, which can then be used to remotely execute code. **Affected platforms:** Windows **Patched Tailscale client versions:** v1.32.3 or later, v1.33.257 or later (unstable) ### What happened? In the Tailscale Windows client, the local API was bound to a local TCP socket, and communicated with the Windows client GUI in cleartext with no Host header verification. This allowed an attacker-controlled website visited by the node to rebind DNS to an attacker-controlled DNS server, and then make local API requests in the client, including changing the coordination server to an attacker-controlled coordination server. ### Who is affected? All Windows clients prior to version v.1.32.3 are affected. ### What should I do? If you are running Tailscale on Windows, upgrade to v1.32.3 or later to remediate the issue. ### What is the impact? An attacker-controlled coordination server can send malicious URL responses to the client, including pushing executables or installing an SMB share. These allow the attacker to remotely execute code on the node. Reviewing all logs confirms this vulnerability was not triggered or exploited. ### Credits We would like to thank [Emily Trau](https://github.com/emilytrau) and [Jamie McClymont (CyberCX)](https://twitter.com/JJJollyjim) for reporting this issue. Further detail is available in [their blog post](https://emily.id.au/tailscale). ### References * [TS-2022-004](https://tailscale.com/security-bulletins/#ts-2022-004) * [Researcher blog post](https://emily.id.au/tailscale) ### For more information If you have any questions or comments about this advisory, [contact Tailscale support](https://tailscale.com/contact/support/).

CVE-2022-41924 Affected Tailscale.com Versions

1 component(s)
Fixed Versions:
1.32.3
Product / Package Ecosystem Affected Versions Fixed Version
tailscale.com
Go
< 1.32.3
1.32.3

References

Frequently Asked Questions

What is CVE-2022-41924?
CVE-2022-41924 is a security vulnerability in Tailscale.com involving Tailscale Windows daemon is vulnerable to RCE via CSRF under CWE-346: Origin Validation Error.
Which Tailscale.com versions are affected?
Affected versions include releases prior to 1.32.3 across affected packages: tailscale.com.
What version fixes CVE-2022-41924?
Upgrading to 1.32.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tailscale.com affected?
Yes, tailscale.com is affected in releases prior to 1.32.3. Upgrade your dependency to 1.32.3 or later.
What is the CVSS score of CVE-2022-41924?
CVE-2022-41924 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:H.
What CWE is associated with CVE-2022-41924?
CVE-2022-41924 is classified under CWE-346: Origin Validation Error (The product does not properly verify that the source of data or communication is valid.).
How can I check Go dependencies for CVE-2022-41924?
Run the dependency tree command: 'inspect dependencies for tailscale.com'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vqp6-rc3h-83cp",
  "modified" : "2022-11-21T22:34:00Z",
  "published" : "2022-11-21T22:34:00Z",
  "aliases" : [ "CVE-2022-41924" ],
  "summary" : "Tailscale Windows daemon is vulnerable to RCE via CSRF",
  "details" : "A vulnerability identified in the Tailscale Windows client allows a malicious website to reconfigure the Tailscale daemon `tailscaled`, which can then be used to remotely execute code.\n\n**Affected platforms:** Windows\n**Patched Tailscale client versions:** v1.32.3 or later, v1.33.257 or later (unstable)\n\n### What happened?\nIn the Tailscale Windows client, the local API was bound to a local TCP socket, and communicated with the Windows client GUI in cleartext with no Host header verification. This allowed an attacker-controlled website visited by the node to rebind DNS to an attacker-controlled DNS server, and then make local API requests in the client, including changing the coordination server to an attacker-controlled coordination server.\n\n### Who is affected?\nAll Windows clients prior to version v.1.32.3 are affected.\n\n### What should I do?\nIf you are running Tailscale on Windows, upgrade to v1.32.3 or later to remediate the issue.\n\n### What is the impact?\nAn attacker-controlled coordination server can send malicious URL responses to the client, including pushing executables or installing an SMB share. These allow the attacker to remotely execute code on the node.\n\nReviewing all logs confirms this vulnerability was not triggered or exploited. \n\n### Credits\nWe would like to thank [Emily Trau](https://github.com/emilytrau) and [Jamie McClymont (CyberCX)](https://twitter.com/JJJollyjim) for reporting this issue. Further detail is available in [their blog post](https://emily.id.au/tailscale).\n\n### References\n* [TS-2022-004](https://tailscale.com/security-bulletins/#ts-2022-004)\n* [Researcher blog post](https://emily.id.au/tailscale)\n\n### For more information\nIf you have any questions or comments about this advisory, [contact Tailscale support](https://tailscale.com/contact/support/).\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "tailscale.com"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.32.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tailscale/tailscale/security/advisories/GHSA-vqp6-rc3h-83cp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41924"
  }, {
    "type" : "WEB",
    "url" : "https://emily.id.au/tailscale"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tailscale/tailscale"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tailscale/tailscale/releases/tag/v1.32.3"
  }, {
    "type" : "WEB",
    "url" : "https://tailscale.com/security-bulletins/#ts-2022-004"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-346", "CWE-352" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-21T22:34:00Z",
    "nvd_published_at" : "2022-11-23T19:15:00Z"
  }
}