Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS12ZmdxLWc1eDgtZzU5Nc4AAyQg

Non-interactive Tailscale SSH sessions on FreeBSD may use the effective group ID of the tailscaled process

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 the 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:

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:

  1. cd /usr/ports/security/tailscale
  2. edit the Makefile to set PORTVERSION to 1.38.2
  3. make makesum
  4. make install

Tailscale SSH on other platforms is not affected.

Credits

We would like to thank Ryan Belgrave for reporting this issue.

References

Permalink: https://github.com/advisories/GHSA-vfgq-g5x8-g595
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ZmdxLWc1eDgtZzU5Nc4AAyQg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: about 1 year ago


CVSS Score: 5.7
CVSS vector: CVSS:3.0/AV:A/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N

Identifiers: GHSA-vfgq-g5x8-g595, CVE-2023-28436
References: Repository: https://github.com/tailscale/tailscale
Blast Radius: 11.4

Affected Packages

go:tailscale.com
Dependent packages: 216
Dependent repositories: 100
Downloads:
Affected Version Ranges: >= 1.34.0, < 1.38.2
Fixed in: 1.38.2
All affected versions: 1.34.0, 1.34.1, 1.34.2, 1.36.0, 1.36.1, 1.36.2, 1.38.0, 1.38.1
All unaffected versions: 0.96.1, 0.97.0, 0.98.0, 0.98.1, 0.99.0, 0.99.1, 0.100.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.6.0, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.10.0, 1.10.1, 1.10.2, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.16.0, 1.16.1, 1.16.2, 1.18.0, 1.18.1, 1.18.2, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.22.0, 1.22.1, 1.22.2, 1.24.0, 1.24.1, 1.24.2, 1.26.0, 1.26.1, 1.26.2, 1.28.0, 1.30.0, 1.30.1, 1.30.2, 1.32.0, 1.32.1, 1.32.2, 1.32.3, 1.38.2, 1.38.3, 1.38.4, 1.40.0, 1.40.1, 1.42.0, 1.42.1, 1.44.0, 1.44.2, 1.44.3, 1.46.0, 1.46.1, 1.48.0, 1.48.1, 1.48.2, 1.50.0, 1.50.1, 1.52.0, 1.52.1, 1.54.0, 1.54.1, 1.56.0, 1.56.1, 1.58.0, 1.58.1, 1.58.2, 1.60.0, 1.60.1, 1.62.0, 1.62.1, 1.64.0, 1.64.1, 1.64.2