CVE Watchtower

CVE-2026-68909Tunnelblick Path Traversal

NVD

Vulnerability Summary

Summary Tunnelblick's privileged `installer` (runs as root; launched via `AuthorizationExecuteWithPrivileges` after an admin authenticates) processes inputs that are controlled by an unprivileged user: the contents of the user-writable private-configurations folder (`~/Library/Application Support/Tunnelblick/Configurations`) and any user-supplied `.tblk`. Two code paths follow symbolic links found in that user-controlled input while running as root: 1. Arbitrary root file read (+ cross-user config read) — `resolveSymlinksInPath()` validates a symlink target with a textual prefix check on the raw, un-normalized target and then reads the target as root; a `..` in the target defeats the check. 2. Root `chown()`/`chmod()` of an attacker-chosen path → local privilege escalation — when "securing" a folder, the deep ownership/permission loop deliberately follows symlink entries, so root changes the owner and mode of the symlink's target. These are the same class as Tunnelblick's historical symlink CVEs. > Disclosure note: I verified all code paths below by reading the source at `main` (build 6450). I have not built a working end-to-end exploit. Where exploitability depends on an assumption, I call it out explicitly and would appreciate your confirmation. Details Finding 1 (High) — `resolveSymlinksInPath()`: un-normalized allow-list check → arbitrary root file read `tunnelblick/installer.m`, `resolveSymlinksInPath()` (lines 303–357), reached from `copyOrMoveOneTblk()` at installer.m:2149 during `INSTALLER_COPY` / `INSTALLER_MOVE` / `INSTALLER_INSTALL` of a user `.tblk`. - installer.m:325 — `resolvedPath = [gFileMgr tbPathContentOfSymbolicLinkAtPath: fullPath];` `tbPathContentOfSymbolicLinkAtPath` is `-destinationOfSymbolicLinkAtPath:` (`NSFileManager+TB.m:483–495`), which returns the raw, un-normalized link target (it does not resolve `..`). - installer.m:326–332 — the target is accepted if it merely `hasPrefix:` `L_AS_T_SHARED`, `L_AS_T_USERS`, or `gDeployPath`. - installer.m:334 — `NSData * data = [gFileMgr contentsAtPath: resolvedPath];` reads it as root (`contentsAtPath:` collapses `..`). - installer.m:349 — the bytes are written back into the `.tblk` (root:wheel, `0700`); the `.tblk` is then copied to the target, and for a private install the target is later chowned to the user (`secureOneFolder(..., isPrivate=YES, userUID())`), disclosing the bytes to the user. Because the allow-list is a `hasPrefix:` on the raw target while the read collapses `..`, a target such as `/Library/Application Support/Tunnelblick/Shared/../../../../etc/master.passwd` passes the check and is read as root. Even without `..`, the allow-listed `L_AS_T_USERS` prefix permits a symlink straight to another user's root-owned shadow configs (cross-user credential/config disclosure). Assumption (please confirm): the in-code comment states Tunnelblick resolves user-provided symlinks while running as the user, so that only Tunnelblick's own internal symlinks are expected to reach this function. If that GUI-side resolution can be bypassed (an updatable/shared configuration, a `.tblk` delivered by another vector, or any gap in that resolution), this is directly exploitable. Regardless, the root installer should not rely on GUI-side sanitization, and the `..`-collapse defeats even the intended own-symlink allow-list. Finding 2 (High) — securing a folder follows symlinks → root `chown()`/`chmod()` of an arbitrary path (LPE) - Deep ownership loop — `tunnelblick/sharedRoutines.m`, `checkSetOwnership()`: each entry is processed twice; a symlink is re-processed with `traverseLink=YES`: - sharedRoutines.m:717 — `checkSetItemOwnership(filePath, atts, uid, gid, NO)` // `lchown` (safe) - sharedRoutines.m:719 — `checkSetItemOwnership(filePath, atts, uid, gid, YES)` // follows the link - `checkSetItemOwnership()` with `traverseLink=YES` calls `chown()` at sharedRoutines.m:655, which follows the symlink and changes the target's owner:group. - Permissions — `checkSetPermissions()` (`sharedRoutines.m:742`) reads attributes with `traverseLink:NO` (lstat) but writes with `chmod()` at sharedRoutines.m:768, which follows the link and changes the target's mode. Reachability: - `INSTALLER_SECURE_TBLKS` → `secureAllTblks()` (installer.m:1943) → `secureOneFolder(userPrivatePath(), isPrivate=YES, userUID())` (installer.m:1978). - `secureOneFolder()` (sharedRoutines.m:1138) → `checkSetOwnership(path, deeply=YES, ...)` (sharedRoutines.m:1196) and `checkSetPermissions(path, ..., YES)` (sharedRoutines.m:1198). - `userPrivatePath()` == `gPrivatePath` == `~/Library/Application Support/Tunnelblick/Configurations` (installer.m:150, built at installer.m:1066/1088) — owned and writable by the user. The ownership check at the top of `checkSetItemOwnership` compares the entry's current owner/group (the symlink's own lstat attributes) against the desired values; for a freshly planted item these differ (typically `user:staff` vs. the target `user:admin`), so the follow-`chown` fires reliably. Finding 3 (Low/Medium) — un-normalized subfolder arguments (path traversal) `INSTALLER_INSTALL_PRIVATE_CONFIG`/`INSTALLER_INSTALL_SHARED_CONFIG` append a caller-supplied name via `stringByAppendingPathComponent:` without collapsing `..`: - installer.m:3036 — `targetPath = [targetPath stringByAppendingPathComponent: fourthArg];` - installer.m:3059 — `targetPath = [L_AS_T_SHARED stringByAppendingPathComponent: thirdArg];` `errorExitIfAnySymlinkInPath()` rejects symlink components but not `..`, so a value like `../../../../tmp/x` lets root create directories / place a root-owned `.tblk` outside the intended folder. Impact is limited (directory creation / nuisance), but the missing normalization is a real input-validation gap. Finding 4 (Low) — uncaught `NSRangeException` crashes a root helper (robustness / DoS) process-network-changes.m:114 — `if ( ! [[actions substringWithRange: NSMakeRange(0, 2)] isEqualToString: @"-p"] )` throws `NSRangeException` when `actions` (the scutil `IgnoreOptionFlags` value) has length < 2, crashing the root job. Similar unguarded range arithmetic exists in the scutil block parsers in `process-network-changes.m` and `standardize-scutil-output.m`. These are bounds-checked `NSString` operations (no memory corruption), so the impact is a crash/DoS of the helper. In normal operation the input is Tunnelblick's own scutil keys, so this is low value; still worth a length guard. PoC > Not executed against a live system; steps describe the intended trigger. A test account and `/tmp` targets can be used instead of real system files to avoid damage. Finding 2 (LPE) — conceptual steps 1. As an unprivileged local user, inside the user-writable private configs folder, create a configuration and plant a symlink whose name will be walked while securing, pointing at a root-controlled file, e.g. `~/Library/Application Support/Tunnelblick/Configurations/evil.tblk/x` → `/Library/LaunchDaemons/<a-root-loaded>.plist` (or a root-run script, `/etc/sudoers`, …). 2. Trigger a routine that secures configurations (install/repair/"secure" → `INSTALLER_SECURE_TBLKS`). 3. Root walks the folder and, following the symlink, `chown()`s + `chmod()`s the target to the securing user (`user:admin`). The user now owns and can rewrite the root file → root code execution. On a multi-user Mac this is standard-user → root (an admin-authorized secure/repair of that user's session chowns the target to the standard user). Finding 1 (root read) — conceptual steps 1. Craft a `.tblk` containing a symlink whose raw target is `…/Tunnelblick/Shared/../../../../etc/master.passwd` (passes the `hasPrefix:` allow-list; `..` collapses on read), or simply `…/T/Users/<other-user>/…` to read another user's shadow config. 2. Install the `.tblk`. `resolveSymlinksInPath()` reads the target as root and embeds its bytes into the installed (private → user-owned) configuration, disclosing root-only / cross-user content to the attacker. Impact - Finding 2: Local privilege escalation to root. An unprivileged local user (including a non-admin on a multi-user Mac) can cause the root installer to change ownership/permissions of an arbitrary file to that user, yielding write control over a root-controlled file and therefore root code execution. - Finding 1: Disclosure of arbitrary root-only files, and of other local users' Tunnelblick credentials/configurations, to an unprivileged user. - Findings 3 & 4: Root-side path-traversal (directory creation / misplacement) and a crash/DoS of a root helper, respectively. All four are in the privileged installer / shared routines it uses; the triggering inputs are unprivileged-user-controlled even though the installer itself is admin-authorized. Suggested remediation - Finding 1: canonicalize the target (`realpath`), require it to be a true subpath (`allowed-root + "/"`) of one specific allowed directory after canonicalization, reject any `..`, and open with `O_NOFOLLOW` verifying root ownership before reading. - Finding 2: never traverse symlinks while securing — use `lchown()` and `fchmodat(..., AT_SYMLINK_NOFOLLOW)` (or operate on an `O_NOFOLLOW` fd), and do not re-process symlink entries with `traverseLink=YES`; skip/reject symlink entries inside a folder being secured. - Finding 3: reject `/` and `..` in the subfolder-name arguments and confirm the resolved path stays within the intended base. - Finding 4: guard string length before `substringWithRange:` and validate the range arithmetic in the scutil parsers. For context (checked, no issue found): root `NSTask`s use a fully replaced safe environment; no `system()`/`popen()`/shell in the privileged helpers; the `securely{Copy,Move,Delete}` routines are well hardened (`O_CREAT|O_EXCL|O_NOFOLLOW_ANY`, fd-based `fstat`/`fchown`/`fchmod`, `st_nlink` hard-link checks, `renamex_np(RENAME_NOFOLLOW_ANY)`); app updates are DSA-signature + codesign Team-ID verified. Findings 1 & 2 live specifically in `resolveSymlinksInPath()` and the `secureOneFolder`/`checkSetOwnership`/`checkSetPermissions` path, which run before/outside those safe routines.
Severity Level
HIGH(7.3)
Published Date
Oct 30, 2026
Last Modified
Oct 30, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
An exception is thrown from a function, but it is not caught.
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control.
CVSS v3.1 Base Metrics — Score 7.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Tunnelblick < 10.0beta03
Patched Versions
  • Tunnelblick >= 10.0beta03

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run Tunnelblick and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Oct 30, 2026Published
  • Oct 30, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Tunnelblick CVEsYou are reading CVE-2026-68909. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 25, 2026 14:01 UTC