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:
- 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.
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: over 1 year ago
Updated: over 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:
- https://github.com/tailscale/tailscale/security/advisories/GHSA-vfgq-g5x8-g595
- https://github.com/tailscale/tailscale/commit/d00c046b723dff6e3775d7d35f891403ac21a47d
- https://github.com/tailscale/tailscale/releases/tag/v1.38.2
- https://tailscale.com/security-bulletins/#ts-2023-003
- https://nvd.nist.gov/vuln/detail/CVE-2023-28436
- https://github.com/advisories/GHSA-vfgq-g5x8-g595
Blast Radius: 11.4
Affected Packages
go:tailscale.com
Dependent packages: 216Dependent 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, 1.66.0, 1.66.1, 1.66.2, 1.66.3, 1.66.4, 1.68.0, 1.68.1, 1.68.2, 1.70.0, 1.72.0, 1.72.1, 1.74.0, 1.74.1, 1.76.0, 1.76.1, 1.76.3, 1.76.6