> ## Content Index
> Fetch the complete content index at: https://ping2prompt.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# NetBird v0.80.0 fixes local root escalation in install.sh
- URL: https://ping2prompt.com/netbird-v0-80-0-fixes-local-root-escalation-install-sh/
- Published: 2026-11-18T15:37:46.000Z
- Updated: 2026-11-18T15:37:46.000Z
- Description: NetBird's install.sh, in v0.79.0 and earlier, stages downloads in guessable /tmp paths, letting a local unprivileged user gain root during install or update, mostly on macOS. Update to v0.80.0 and use its script; v0.79.0 is not fixed.
- Author: Ping2Prompt Newsroom
- Tags: NetBird, Self-hosted, Vulnerabilities, High, #short-ping

## NetBird's install.sh lets a local user reach root

NetBird's `install.sh` script saves downloads under fixed, guessable names in `/tmp` while running as the invoking unprivileged user, then hands those same paths to install steps that run as root. A local unprivileged account can use this to gain root on a machine where an administrator installs, reinstalls or updates NetBird.

The advisory metadata rates the flaw medium and gives no CVSS score or vector.

## Guessable /tmp paths feed the root install steps

The commands in this article come from the advisory listed under Sources; verify them against your own setup before running anything. On macOS, the default `.pkg` path runs `curl -fsSL -o /tmp/netbird.pkg` as the user, then `installer -pkg /tmp/netbird.pkg -target /` as root. Root then executes the package's preinstall and postinstall scripts.

Root-run `installer` skips Gatekeeper, which depends on the `com.apple.quarantine` extended attribute that `curl -o` never writes. An unsigned package written by an attacker is therefore accepted.

The binary path runs `cd /tmp && curl -LO` to fetch a `netbird_<ver>_<os>_<arch>.tar.gz` tarball and unpacks it in `/tmp` as the user. Root then moves the result into the install directory, such as `/usr/bin/netbird`, which runs as a privileged service. The tarball name can be worked out from the published release.

A local attacker can pre-place or swap files at those paths. The window stays open for as long as the administrator takes to type the sudo password.

## NetBird v0.79.0 and earlier are affected, mostly on macOS

Every NetBird release up to and including v0.79.0 is affected. v0.79.0 does not contain the fix. It was tagged on 2026-09-18, after the fix was merged, but from a release branch cut earlier, and its `install.sh` still uses `cd /tmp && curl -LO`.

The advisory calls macOS the main exposure: it has no kernel-level guard against files planted in a shared temporary directory, and the `.pkg` path is the default there. On Linux, the binary path is used in these cases:

- Synology, where the script forces `PACKAGE_MANAGER` to be `bin`.
- Linux hosts with no apt, dnf, yum or rpm-ostree, such as Alpine, Arch, Gentoo, openSUSE and container images.
- Any run with `USE_BIN_INSTALL=true`.

The binary path is also called from `update_netbird`, so a host installed this way is exposed again on every update.

Many Linux systems are shielded by two kernel settings. `fs.protected_symlinks=1` makes curl refuse another user's symlink in a sticky, world-writable directory, and `fs.protected_regular=1` or `2` (kernel 4.19 and later) blocks opening such a file owned by someone else. Neither is a kernel default; both come from a distro-shipped `sysctl.d` file. Systems without it stay exposed, including non-systemd distributions, minimal container images and older embedded kernels such as Synology DSM. Check a Linux host with `sysctl fs.protected_symlinks fs.protected_regular`.

The exploitation status is unknown; the sources do not say.

## Update to NetBird v0.80.0 and use its script

The fix is in v0.80.0 (PR #7534, commit `58b5263c1`). It was merged on 2026-09-15 and released on 2026-10-01\. Do not treat v0.79.0 as patched, and do not run its install script.

On hosts that use the binary path, the update step runs the same download logic, so update through the fixed script too.

| Product | Affected                       | Fixed   |
| ------- | ------------------------------ | ------- |
| NetBird | v0.79.0 and earlier (< 0.80.0) | v0.80.0 |

## Sources

- [github.com/netbirdio/netbird/security/advisories/GHSA-4f37-3q6x-xv3x](https://github.com/netbirdio/netbird/security/advisories/GHSA-4f37-3q6x-xv3x?ref=ping2prompt.com)

---

This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our [editorial methodology](https://ping2prompt.com/about-how-we-work/) and the [corrections log](https://ping2prompt.com/corrections/). Spotted an error? Email [editor@ping2prompt.com](mailto:editor@ping2prompt.com).