SecurinZero Days
    Email Us
    Zero-Day Research/CVE-2026-105429
    ▲ HighCVSS 8.5✓ Patched

    NetBird SSH Config Match Line Injection via Peer FQDN / Hostname

    The NetBird client writes a system-wide OpenSSH drop-in (/etc/ssh/ssh_config.d/99-netbird.conf) that embeds each peer FQDN/hostname inside a double-quoted Match host directive without escaping. A peer whose name contains a double quote breaks out of the quoted context and injects arbitrary SSH config directives, including exec commands, which run locally for every user on the host the next time they invoke ssh.

    CVE IDCVE-2026-105429
    CVSS v3.18.5 High
    VendorNetBird
    CWECWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), CWE-116: Improper Encoding or Escaping of Output
    DisclosedSep 1, 2026
    StatusFixed
    All advisories
    • 01Description
    • 02Proof of Concept
    • 03Vulnerable Code
    • 04Impact
    • 05Remediation
    • 06Timeline
    • 07References
    01/Description

    What this actually is.

    Technical background, root cause, and affected surface.

    The NetBird client writes a system-wide OpenSSH drop-in (/etc/ssh/ssh_config.d/99-netbird.conf) that embeds each peer FQDN/hostname inside a double-quoted Match host directive without escaping. A peer whose name contains a double quote breaks out of the quoted context and injects arbitrary SSH config directives, including exec commands, which run locally for every user on the host the next time they invoke ssh.

    Vendor
    NetBird
    Product
    NetBird v0.74.3
    Severity
    High
    CVSS Score
    8.5
    Status
    Fixed
    Vector
    CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
    CWE
    CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), CWE-116: Improper Encoding or Escaping of Output
    02/Proof of Concept

    From one request
    to root shell.

    Reproduced in a sandboxed environment. Requires only LAN or WiFi adjacency.

    8.5CVSS 3.1
    VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
    ScopeN/A
    ImpactN/A
    SeverityHigh

    Peer FQDN: evil" exec "id > /tmp/pwn" # renders as: Match host "evil" exec "id > /tmp/pwn" #" exec "netbird auth ..." ; running ssh on the victim host writes uid output to /tmp/pwn (Go PoC TestH28_SSHConfigInjection).

    03/Vulnerable Code

    The bug, and the fix.

    client/ssh/config/manager.go:193: fmt.Fprintf(w, `Match host "%s" exec "netbird auth ..."`+"\n", peerFQDN) // peerFQDN not escaped

    04/Impact

    What an attacker does to you.

    Post-exploitation outcomes mapped to CVSS impact metrics.

    High

    Local command execution as any user on the victim host who runs ssh, triggered by a malicious or compromised peer name in the network map; system-wide config affects all users.

    05/Remediation

    Fix it. In this order.

    A runbook, not a checklist. Sequence matters — assume compromise before you act.

    01

    Upgrade to NetBird 0.74.7 or later (PR #6805). buildHostPatterns now admits a peer FQDN/hostname only if it is a plain DNS name (domain.IsValidDomainNoWildcard), rejecting quotes, whitespace, newlines, commas and pattern metacharacters.

    N/A
    Securin advisory — For coordinated remediation support or threat-actor briefings related to CVE-2026-105429, contact disclose@securin.io
    06/Disclosure Timeline

    Vendors moved in days.
    Attackers in hours.

    Reconstructed from vendor advisories, CISA bulletins, and Securin research records.

    2026-07-13

    Reported to NetBird via GitHub Security Advisory

    2026-07-15

    Vendor accepted

    2026-07-17

    Fix released in 0.74.7 (PR #6805)

    2026-09-01

    Advisory published (GHSA-xmg2-v32j-x2hf)

    2026-10-05

    CVE-2026-105429 assigned

    Disclosed 0 days after discovery

    07/References

    Cite, verify, go deeper.

    Primary sources — NVD, CISA KEV, and machine-readable IoC feed.

    NVD

    NVD — CVE-2026-105429

    nvd.nist.gov/vuln/detail/CVE-2026-105429 →
    SEC

    Securin VI — Full Technical Analysis

    vi.securin.io →
    GITHUB

    https://github.com/netbirdio/netbird/security/advisories/GHSA-xmg2-v32j-x2hf

    https://github.com/netbirdio/netbird/security/advisories/GHSA-xmg2-v32j-x2hf →
    GITHUB

    https://github.com/netbirdio/netbird/pull/6805

    https://github.com/netbirdio/netbird/pull/6805 →
    GITHUB

    https://github.com/netbirdio/netbird/releases/tag/v0.74.7

    https://github.com/netbirdio/netbird/releases/tag/v0.74.7 →
    CVE

    https://www.cve.org/CVERecord?id=CVE-2026-105429

    https://www.cve.org/CVERecord?id=CVE-2026-105429 →

    Let Securin level up your security posture.

    Get a live exposure assessment, threat-actor briefing tailored to your sector, and IoC mapping for your SIEM.

    Browse all advisories
    SecurinSecurinZero Days

    Securin's zero-day research operation combines frontier AI models with a decade of offensive expertise — discovering, validating, and coordinating the disclosure of high-impact vulnerabilities at a scale and speed no human team achieves alone.

    Glossary
    © 2026 Securin Inc · CVE Numbering Authority
    Privacy Policy·Data Processing Addendum