# GHSA-7WWH-VFQ4-V488: \[H06\] Netstack SOCKS5 proxy binds to all interfaces (0.0.0.0), exposing an unauthenticated proxy into the NetBird overlay

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-08-24
- Modified: 2026-10-05

## Tracked as

- [CVE-2026-105428](https://cve.now/CVE-2026-105428.md): NetBird unauthenticated overlay access via exposed SOCKS5 proxy

## Affected versions

- github.com/netbirdio/netbird (Go): through 0.74.6

## 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](https://cwe.mitre.org/data/definitions/1327.html) (Binding to an Unrestricted IP Address)
- **Affected product:** `github.com/netbirdio/netbird` v0.74.3
- **Affected component(s):** socks5
- **Reporter:** [@SecurinDisclose](https://github.com/SecurinDisclose) — Arjun Basnet · Securin Inc. — `arjun.basnet@securin.io`

---

## Overview

```go
// 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

```go
// 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.](https://securin.io) — via GitHub [@SecurinDisclose](https://github.com/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:

**https://github.com/SecurinDisclose/netbird-0.74.3-audit** (private — request read access via GitHub or email `arjun.basnet@securin.io`).

## Coordinated Disclosure

- **Reporter:** [@SecurinDisclose](https://github.com/SecurinDisclose) — Arjun Basnet, Securin Inc.
- **Contact:** `arjun.basnet@securin.io`
- **Public-disclosure deadline:** 2026-10-11 (90 days from 2026-07-13)

## References

- https://github.com/netbirdio/netbird/security/advisories/GHSA-7wwh-vfq4-v488

Page: https://cve.now/GHSA-7WWH-VFQ4-V488

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
