CVE-2026-105429NetBird client SSH config Match line injection via peer FQDN or hostname allows local…
Improper neutralization of special elements in the NetBird client SSH configuration manager (client/ssh/config/manager.go) in NetBird versions 0.60.0 through 0.74.6 allows a malicious or compromised peer to execute arbitrary commands on other NetBird client hosts. The client writes a system-wide OpenSSH drop-in file (/etc/ssh/ssh_config.d/99-netbird.conf, or the equivalent under %PROGRAMDATA%\ssh\ssh_config.d on Windows) that embeds each peer FQDN or hostname inside a double-quoted Match host directive without escaping. A peer name containing a double quote breaks out of the quoted context and injects arbitrary SSH configuration directives, including exec commands, which run locally as any user on the host the next time that user runs ssh. Desktop clients on Linux, macOS, Windows and FreeBSD are affected; the Android and iOS apps are not. The issue is fixed in version 0.74.7, which accepts a peer FQDN or hostname only if it is a valid DNS name.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by securin, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NetBird: affected: 0.60.0 to before 0.74.7; fixed in
0.74.7
Solution: Upgrade the NetBird client to version 0.74.7 or later. In this version, buildHostPatterns accepts a peer FQDN or hostname only if it is a plain DNS name, and rejects quotes, whitespace, newlines, commas and SSH pattern metacharacters (pull request #6805).
Vendor advisories:
- https://github.com/netbirdio/netbird/security/advisories/GHSA-xmg2-v32j-x2hf (vendor-advisory)
- https://github.com/netbirdio/netbird/pull/6805 (patch)
- https://github.com/netbirdio/netbird/releases/tag/v0.74.7 (release-notes)
References
- https://github.com/netbirdio/netbird/security/advisories/GHSA-xmg2-v32j-x2hf
- https://github.com/netbirdio/netbird/pull/6805
- https://github.com/netbirdio/netbird/releases/tag/v0.74.7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.