In this article
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_MANAGERto bebin. - 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
This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our editorial methodology and the corrections log. Spotted an error? Email [email protected].


Discussion