CVE-2026-105429: NetBird client SSH config Match line injection via peer FQDN or hostname allows local command execution

Published Oct 14, 2026
·
Updated

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/sshconfig.d/99-netbird.conf, or the equivalent under %PROGRAMDATA%\ssh\sshconfig.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.

Affected Software

1 affected component
NetBird NetBird client>=0.60.0<=0.74.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NetBird client to a version that resolves this vulnerability.

    Fixed in 0.74.7

Event History

Oct 14, 2026
CVE Published
via MITRE·04:33 AM
Data Sourced
via MITRE·04:33 AM
RemedyDescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems and clients are affected?

NetBird desktop clients on Linux, macOS, Windows, and FreeBSD are affected in versions 0.60.0 through 0.74.6. Android and iOS apps are not affected.

2

What must an attacker control to exploit this issue?

The attacker must be able to introduce or control a NetBird peer with a malicious FQDN or hostname, such as through a malicious or compromised peer. The crafted name must contain a double quote to escape the quoted SSH Match host value and inject SSH directives.

3

When does injected code execute, and under which account?

Injected SSH exec directives run the next time a user on the affected host runs ssh. They execute locally as that user, so impact depends on which users invoke SSH on the machine.

4

What should be done if an immediate upgrade is not possible?

Review the NetBird-managed system-wide SSH drop-in file for unexpected content: /etc/ssh/ssh_config.d/99-netbird.conf on applicable systems, or the equivalent under %PROGRAMDATA%\ssh\ssh_config.d on Windows. Treat peer names containing unexpected characters, particularly double quotes, and unexpected SSH directives such as exec as indicators requiring investigation.

5

What version fixes the issue?

Upgrade the NetBird client to version 0.74.7. The fix restricts peer FQDNs and hostnames to valid DNS names.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203