CVE-2022-41924: Tailscale.com Remote Code Execution Vulnerability
CRITICALCVE-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
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).
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.
Upgrade tailscale.com to 1.32.3
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
CVE-2022-41924 Affected Tailscale.com Versions
1 component(s)| 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?
Which Tailscale.com versions are affected?
What version fixes CVE-2022-41924?
Is tailscale.com affected?
What is the CVSS score of CVE-2022-41924?
What CWE is associated with CVE-2022-41924?
How can I check Go dependencies for CVE-2022-41924?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}