CVE-2026-110925: Openssh: openssh: '$' and '\' in a command-line username expand through %u

Published Oct 15, 2026
·
Updated

A flaw was found in OpenSSH ssh. sshvalidruser did not reject '$' or a backslash that is not at the end of a username entered on the command line. Those characters still expand through %u in ProxyCommand or Match exec. Usernames written in the configuration file are not subject to this check. CVE-2026-35386 is already backported and rejects a different set of shell metacharacters, plus a trailing backslash. Hostnames in that fix already reject '$' and '\'. Usernames do not. This is a new CVE on top of CVE-2026-35386.

Other sources

A flaw was found in OpenSSH. A username entered on the ssh command line can still contain '$' or a non-trailing backslash. When a configuration expands %u inside ProxyCommand or Match exec, those characters are passed into the shell.

— MITRE

Affected Software

1 affected component
OpenSSH OpenSSH

Event History

Oct 15, 2026
Data Sourced
via Red Hat·04:16 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:25 AM
Data Sourced
via MITRE·05:25 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

OpenSSH clients are exposed when a username supplied on the ssh command line is expanded through %u in a ProxyCommand or Match exec configuration directive. Configurations that do not use %u in those shell-executed directives are not described as affected.

2

What does an attacker need to exploit it?

The attacker needs a victim to use ssh with a command-line username containing '$' or a non-trailing backslash, and for the applicable SSH configuration to expand %u in ProxyCommand or Match exec. The issue requires user interaction, as reflected by the UI:R vector.

3

Are usernames defined in SSH configuration files affected?

No. The described validation check applies to usernames entered on the command line; usernames written in the configuration file are explicitly not subject to this check.

4

How can exposure be reduced before a fix is available?

Avoid using command-line usernames containing '$' or non-trailing backslashes, especially where ProxyCommand or Match exec expands %u. Review SSH configurations for those directives and their use of %u.

5

Does the earlier CVE-2026-35386 backport address this flaw?

No. That backport rejects a different set of shell metacharacters and a trailing backslash, but this issue covers '$' and non-trailing backslashes in command-line usernames.

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