A flaw was found in libssh. A malicious username expanded through %r in ProxyCommand handling can inject shell metacharacters, exposing environment variables and causing unintended shell behavior.
Credits
Red Hat would like to thank Mikhail Ilin and Saransh Rana for reporting this issue.