Description
Binding to an unrestricted IP address in the netstack SOCKS5 proxy of the NetBird client (client/iface/netstack) in NetBird versions before 0.74.7 allows an unauthenticated attacker on the same network as the client to relay traffic through the client into its NetBird overlay network. When the client runs in netstack mode (NB_USE_NETSTACK_MODE=true), it starts a SOCKS5 proxy, without authentication, that is meant to bridge applications on the local host into the userspace WireGuard stack. The listener was bound to 0.0.0.0 instead of the loopback address, so any host that can reach the proxy port (1080 by default) can connect and reach peers and internal resources with the network position of the affected client. Netstack mode is not enabled by default. The issue is fixed in version 0.74.7, which binds the proxy to 127.0.0.1 by default.
Vendor solution
Upgrade the NetBird client to version 0.74.7 or later. In this version the netstack SOCKS5 proxy listens on 127.0.0.1 by default. The NB_SOCKS5_LISTENER_ADDRESS environment variable can set a different bind address when the proxy must be reachable from other hosts; doing so exposes the unauthenticated proxy on that address (pull request #6812).
Vendor workaround
If an upgrade is not possible, do not run the client in netstack mode on untrusted networks, or block inbound access to the SOCKS5 proxy port with a host firewall.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
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
- Attack vector
- Adjacent network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None (no login)
- User interaction
- Not required
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-1327 Binding to an Unrestricted IP Address
References
- github.com/netbirdio/netbird/security/advisories/GHSA-7wwh-vfq4-v488 vendor advisory
- github.com/netbirdio/netbird/pull/6812 patch
- github.com/netbirdio/netbird/releases/tag/v0.74.7
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.