ts-2023-003
Vulnerability from tailscale
Reference: CVE-2023-28436
Severity: Medium
CVSS vector string: CVSS:3.0/AV:A/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N
Description: A vulnerability identified in the implementation of Tailscale SSH in FreeBSD allowed commands to be run with a higher privilege group ID than that specified by Tailscale SSH access rules.
Affected platforms: FreeBSD
Patched Tailscale client versions: v1.38.2 or later
What happened?
A difference in the behavior of the FreeBSD setgroups
system call from POSIX meant that the Tailscale client running on a FreeBSD-based operating system did not appropriately restrict groups on the host when using Tailscale SSH. When accessing a FreeBSD host over Tailscale SSH, the egid of the tailscaled process was used instead of that of the user specified in Tailscale SSH access rules.
Who is affected?
9 tailnets with 22 FreeBSD nodes running Tailscale SSH since Tailscale v1.34 (released on 2022-12-04) may have had Tailscale SSH sessions with a higher privilege group ID than that specified in Tailscale SSH access rules.
We have notified affected organizations where we have security contacts.
What is the impact?
Tailscale SSH commands may have been run with a higher privilege group ID than that specified in Tailscale SSH access rules if they met all of the following criteria:
- The destination node was a FreeBSD device with Tailscale SSH enabled;
- Tailscale SSH access rules permitted access for non-root users; and
- A non-interactive SSH session was used.
What do I need to do?
If you are running Tailscale on FreeBSD, upgrade to v1.38.2 or later to remediate the issue. Admins of a tailnet can view FreeBSD nodes with unpatched versions in the admin console.
To update the local ports tree in advance of what's available upstream, you can:
cd /usr/ports/security/tailscale
- edit the Makefile to set
PORTVERSION
to1.38.2
make makesum
make install
Tailscale SSH on other platforms is not affected.
Credits
We would like to thank Ryan Belgrave for reporting this issue.
Show details on source website{ guidislink: false, id: "https://tailscale.com/security-bulletins/#ts-2023-003", link: "https://tailscale.com/security-bulletins/#ts-2023-003", links: [ { href: "https://tailscale.com/security-bulletins/#ts-2023-003", rel: "alternate", type: "text/html", }, ], published: "Wed, 22 Mar 2023 00:00:00 GMT", summary: "<p><strong><em>Reference</em></strong>: <a href=\"https://www.cve.org/CVERecord?id=CVE-2023-28436\">CVE-2023-28436</a></p>\n<p><strong><em>Severity</em></strong>: Medium</p>\n<p><strong><em>CVSS vector string</em></strong>: CVSS:3.0/AV:A/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N</p>\n<p><strong><em>Description</em></strong>: A vulnerability identified in the implementation of Tailscale SSH in FreeBSD allowed commands to be run with a higher privilege group ID than that specified by Tailscale SSH access rules.</p>\n<p><strong><em>Affected platforms</em></strong>: FreeBSD</p>\n<p><strong><em>Patched Tailscale client versions</em></strong>: v1.38.2 or later</p>\n<h4>What happened?</h4>\n<p>A difference in the behavior of the FreeBSD <code>setgroups</code> system call from POSIX meant that the Tailscale client running on a FreeBSD-based operating system did not appropriately restrict groups on the host when using Tailscale SSH. When accessing a FreeBSD host over Tailscale SSH, the egid of the tailscaled process was used instead of that of the user specified in Tailscale SSH access rules.</p>\n<h4>Who is affected?</h4>\n<p>9 tailnets with 22 FreeBSD nodes running Tailscale SSH since Tailscale v1.34 (released on 2022-12-04) may have had Tailscale SSH sessions with a higher privilege group ID than that specified in Tailscale SSH access rules.</p>\n<p>We have notified affected organizations where we have <a href=\"https://tailscale.com/kb/1224/contact-preferences/#setting-the-security-issues-email\">security contacts</a>.</p>\n<h4>What is the impact?</h4>\n<p>Tailscale SSH commands may have been run with a higher privilege group ID than that specified in Tailscale SSH access rules if they met all of the following criteria:</p>\n<ul>\n<li>The destination node was a FreeBSD device with Tailscale SSH enabled;</li>\n<li>Tailscale SSH access rules permitted access for non-root users; and</li>\n<li>A non-interactive SSH session was used.</li>\n</ul>\n<h4>What do I need to do?</h4>\n<p>If you are running Tailscale on FreeBSD, upgrade to v1.38.2 or later to remediate the issue. Admins of a tailnet can view <a href=\"https://login.tailscale.com/admin/machines?q=version%3A%3C1.38.2+freebsd\">FreeBSD nodes with unpatched versions</a> in the admin console.</p>\n<p>To update the local ports tree in advance of what's available upstream, you can:</p>\n<ol>\n<li><code>cd /usr/ports/security/tailscale</code></li>\n<li>edit the Makefile to set <code>PORTVERSION</code> to <code>1.38.2</code></li>\n<li><code>make makesum</code></li>\n<li><code>make install</code></li>\n</ol>\n<p>Tailscale SSH on other platforms is not affected.</p>\n<h4>Credits</h4>\n<p>We would like to thank <a href=\"https://www.linkedin.com/in/rbelgrave/\">Ryan Belgrave</a> for reporting this issue.</p>", summary_detail: { base: "https://tailscale.com/security-bulletins/index.xml", language: null, type: "text/html", value: "<p><strong><em>Reference</em></strong>: <a href=\"https://www.cve.org/CVERecord?id=CVE-2023-28436\">CVE-2023-28436</a></p>\n<p><strong><em>Severity</em></strong>: Medium</p>\n<p><strong><em>CVSS vector string</em></strong>: CVSS:3.0/AV:A/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N</p>\n<p><strong><em>Description</em></strong>: A vulnerability identified in the implementation of Tailscale SSH in FreeBSD allowed commands to be run with a higher privilege group ID than that specified by Tailscale SSH access rules.</p>\n<p><strong><em>Affected platforms</em></strong>: FreeBSD</p>\n<p><strong><em>Patched Tailscale client versions</em></strong>: v1.38.2 or later</p>\n<h4>What happened?</h4>\n<p>A difference in the behavior of the FreeBSD <code>setgroups</code> system call from POSIX meant that the Tailscale client running on a FreeBSD-based operating system did not appropriately restrict groups on the host when using Tailscale SSH. When accessing a FreeBSD host over Tailscale SSH, the egid of the tailscaled process was used instead of that of the user specified in Tailscale SSH access rules.</p>\n<h4>Who is affected?</h4>\n<p>9 tailnets with 22 FreeBSD nodes running Tailscale SSH since Tailscale v1.34 (released on 2022-12-04) may have had Tailscale SSH sessions with a higher privilege group ID than that specified in Tailscale SSH access rules.</p>\n<p>We have notified affected organizations where we have <a href=\"https://tailscale.com/kb/1224/contact-preferences/#setting-the-security-issues-email\">security contacts</a>.</p>\n<h4>What is the impact?</h4>\n<p>Tailscale SSH commands may have been run with a higher privilege group ID than that specified in Tailscale SSH access rules if they met all of the following criteria:</p>\n<ul>\n<li>The destination node was a FreeBSD device with Tailscale SSH enabled;</li>\n<li>Tailscale SSH access rules permitted access for non-root users; and</li>\n<li>A non-interactive SSH session was used.</li>\n</ul>\n<h4>What do I need to do?</h4>\n<p>If you are running Tailscale on FreeBSD, upgrade to v1.38.2 or later to remediate the issue. Admins of a tailnet can view <a href=\"https://login.tailscale.com/admin/machines?q=version%3A%3C1.38.2+freebsd\">FreeBSD nodes with unpatched versions</a> in the admin console.</p>\n<p>To update the local ports tree in advance of what's available upstream, you can:</p>\n<ol>\n<li><code>cd /usr/ports/security/tailscale</code></li>\n<li>edit the Makefile to set <code>PORTVERSION</code> to <code>1.38.2</code></li>\n<li><code>make makesum</code></li>\n<li><code>make install</code></li>\n</ol>\n<p>Tailscale SSH on other platforms is not affected.</p>\n<h4>Credits</h4>\n<p>We would like to thank <a href=\"https://www.linkedin.com/in/rbelgrave/\">Ryan Belgrave</a> for reporting this issue.</p>", }, title: "TS-2023-003", title_detail: { base: "https://tailscale.com/security-bulletins/index.xml", language: null, type: "text/plain", value: "TS-2023-003", }, }
Log in or create an account to share your comment.
This schema specifies the format of a comment related to a security advisory.
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.