Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in libssh username handling for ProxyCommand expansion. The ssh_check_username_syntax() validation path in src/misc.c used an incomplete dangerous-character filter for usernames expanded through %r. As a result, specially crafted usernames containing shell-significant characters could reach shell-evaluated ProxyCommand handling and influence shell expansion, exposing environment variables and causing unintended shell behavior. This issue affects clients that combine untrusted username input with ProxyCommand-style shell execution.