Skip to main content
Menu
Advisories

[H06] Netstack SOCKS5 proxy binds to all interfaces (0.0.0.0), exposing an unauthenticated proxy into the NetBird overlay

GHSA-7WWH-VFQ4-V488Published Updated GitHub

Description

Advisory 10 — [H06] Netstack SOCKS5 proxy binds to all interfaces (0.0.0.0) instead of loopback

  • Severity: Medium
  • CVSS 4.0 Base Score: 5.4
  • CVSS 4.0 Vector: CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:L
  • CWE: CWE-1327 (Binding to an Unrestricted IP Address)
  • Affected product: github.com/netbirdio/netbird v0.74.3
  • Affected component(s): socks5
  • Reporter: @SecurinDisclose — Arjun Basnet · Securin Inc. — arjun.basnet@securin.io

---

Overview

// client/iface/netstack/env.go
func listenAddr(port int) string {
	return fmt.Sprintf("0.0.0.0:%d", port) // binds to all interfaces
}

In netstack mode (NB_USE_NETSTACK_MODE=true) the client starts a SOCKS5 proxy that bridges local host applications into the userspace WireGuard stack. The listener address is built by listenAddr, which binds to 0.0.0.0 (all interfaces) instead of loopback.

The proxy has no authentication. That is acceptable for a service reachable only from the local host, but because it is bound to all interfaces, any machine on the same network can connect and relay traffic through the client into its NetBird overlay. The root cause is the unrestricted bind address, not the absence of authentication: an unauthenticated proxy bound to 127.0.0.1 is safe.

---

Affected Location

  • client/iface/netstack/env.go — listenAddr binds the SOCKS5 listener to 0.0.0.0.
  • client/iface/netstack/proxy.go:24 — socks5.NewServer(socks5.WithDial(...)) creates the proxy with no authenticator (relevant only because the listener is exposed beyond loopback).

---

Vulnerable Code

// client/iface/netstack/env.go
func listenAddr(port int) string {
	return fmt.Sprintf("0.0.0.0:%d", port)
}

// client/iface/netstack/proxy.go
server := socks5.NewServer(
	socks5.WithDial(dialer.Dial),
	// no authenticator configured
)

---

Reproduction

Starting the client in netstack mode is sufficient to create the listening socket bound to 0.0.0.0. From another host on the same network, connect to the proxy port (default 1080) and issue a SOCKS5 CONNECT; traffic is relayed into the victim's NetBird overlay without any credentials.

---

Impact

Any host that can reach the proxy port can use the victim client as an unauthenticated SOCKS5 relay into its NetBird overlay, reaching peers and internal resources with the victim's network position. Concrete consequences and CIA breakdown are captured in the CVSS 4.0 vector: CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:L.

---

Remediation

Bind the listener to 127.0.0.1 by default so the proxy is reachable only from the local host. If cross-host reachability is genuinely required (e.g. a container gateway), gate it behind an explicit opt-in (environment variable), understanding that this exposes an unauthenticated proxy on that address.

---

Credit

Reported by Arjun Basnet — Securin Inc. — via GitHub @SecurinDisclose. Coordinated disclosure timeline: 90 days — public disclosure on or after 2026-10-11 unless extended by mutual agreement.

---

Private Audit Bundle

Full reproduction bundle (labs, PoCs, live-target evidence, cross-referenced advisories) is available at:

github.com/SecurinDisclose/netbird-0.74.3-audit (private — request read access via GitHub or email arjun.basnet@securin.io).

Coordinated Disclosure

  • Reporter: @SecurinDisclose — Arjun Basnet, Securin Inc.
  • Contact: arjun.basnet@securin.io
  • Public-disclosure deadline: 2026-10-11 (90 days from 2026-07-13)

Affected versions

References

GitHub · netbirdio/netbird