Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence username passed to ssh
-
Exploit%u expands inside ProxyCommand/Match exec
-
ExecutionShell interprets '$' or backslash
-
ImpactExecute arbitrary commands as ssh user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an OpenSSH client configuration in which a ProxyCommand or Match exec directive expands the %u token into a shell context; without %u used in those directives the flaw is not reachable. The attacker must be able to control or influence the username passed on the ssh command line (e.g., via a script, wrapper, or application that forwards untrusted input as the username), and a user/process must actually initiate the ssh connection (UI:R). Limiting factors: this is not exploitable against default OpenSSH configurations, execution occurs only with the privileges of the account running ssh (scope unchanged), and there is no server-side or standalone network trigger. |
| Impact | This is a command-injection flaw (CWE-78) in OpenSSH where shell metacharacters ('$' or a non-trailing backslash) in a command-line username survive into the shell when a configuration expands the %u token inside a ProxyCommand or Match exec directive. The Red Hat-assigned CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N, base 5.4) reflects the key tension in this issue: although the vector is network-reachable and unauthenticated (PR:N), it requires user interaction (UI:R) AND, critically, a non-default configuration that uses %u inside ProxyCommand/Match exec - a prerequisite the raw CVSS score does not capture and which the AC:L rating arguably understates. No EPSS score, CISA KEV listing, POC, or SSVC decision data was supplied, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The realistic verdict is a conditional, moderate-risk client-side injection rather than a mass-exploitable server flaw: impact only materializes where an application or script feeds attacker-influenced usernames into an OpenSSH client whose config expands %u in a shell context. For the overwhelming majority of deployments that do not use %u in ProxyCommand/Match exec, real-world risk is low despite OpenSSH's ubiquity. |
| Exploit ScenarioDerived | An application or automation wrapper invokes the OpenSSH client with an externally supplied username, and the client's config expands %u inside a ProxyCommand or Match exec directive. An attacker submits a username containing '$' or a non-trailing backslash so that, when %u is expanded, the shell interprets those metacharacters and runs attacker-chosen commands as the user running ssh. No public exploit is identified at time of analysis; exploitation depends on the specific %u-in-shell configuration and on the attacker being able to influence the username. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 15, 2026
Command injection in the OpenSSH client allows shell metacharacters placed in a command-line username - specifically '$' or a non-trailing backslash - to reach a shell when the ssh configuration expands the %u token inside a ProxyCommand or Match exec directive, giving arbitrary command execution with the privileges of the account that runs ssh. Reachability is conditional: a default OpenSSH configuration is not affected, and the attack requires a non-default config using %u in those directives plus a username that an attacker can control or influence through a script, wrapper, or application that forwards untrusted input as the username, with a user or process actually initiating the connection (UI:R). Affected builds are OpenSSH as shipped in Red Hat Enterprise Linux 6 through 10, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4; no public exploit identified at time of analysis. Note the scoring divergence: Red Hat assigns 5.4 (C:L/I:L/A:N), while our independent assessment is higher at CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H because command execution under the invoking account can fully compromise confidentiality, integrity, and availability of that account's data and sessions.
RemediationAI
No vendor-released patch was identified at time of analysis; consult the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-110925 and Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2553034 for the current per-stream errata and updated openssh-clients packages, and apply them across RHEL 6-10, Red Hat Hardened Images, and OpenShift Container Platform 4 as they become available. Because the flaw is only reachable through configuration, the most effective immediate mitigation is to remove the %u token from any ProxyCommand or Match exec directive in ssh_config and replace it with a value that cannot carry shell metacharacters; the trade-off is loss of per-user dynamic proxy selection, which can usually be recovered by invoking ssh with an explicit -o ProxyCommand from a trusted wrapper. Where %u must be retained, sanitize or reject usernames containing '$' or backslash before they are passed to ssh (for example in wrapper scripts and automation), and never forward web- or API-supplied input directly into the ssh username argument; the trade-off is that legitimate usernames containing those characters will be blocked. Also prefer the -l flag with validated input over user@host positional arguments, and restrict which accounts are permitted to run ssh with configs containing %u, since exploitation runs only with the privileges of the invoking user and limiting those accounts bounds the blast radius.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is a CWE-78 OS command injection rooted in how the OpenSSH client expands configuration tokens. Directives such as ProxyCommand and Match exec are executed through a shell (/bin/sh -c), so any configuration that interpolates the %u token into those directives embeds the username string into a shell command line. The client sanitizes usernames only for this specific purpose by stripping certain characters, but '$' and a non-trailing backslash survive that filtering, so shell expansion (variable substitution, command substitution, line continuation/escaping) can be triggered by a crafted username. The vulnerability therefore lives in the client-side ssh_config expansion path, not in the SSH transport protocol, the server (sshd), key exchange, or authentication code. The CPE data confirms the scope is vendor packaging rather than a single upstream release: Red Hat Enterprise Linux 6, 7, 8, 9, and 10, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4 are all listed as affected, reflecting the shared openssh-clients package across those products. Exploitation is confined to local execution as the user running ssh (scope unchanged, no server-side or standalone network trigger), which is why the real-world risk depends entirely on whether a deployment uses %u inside ProxyCommand or Match exec and whether usernames originate from untrusted sources such as jump-host wrappers, automation scripts, or web front-ends calling ssh on the user's behalf.
Know when Openssh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Command injection yields arbitrary code execution (C/I/A:H) but depends on a non-default %u-in-shell config (AC:H) and a user-initiated ssh connection (UI:R) with no prior authentication to the component (PR:N).
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se
sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static
The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin
The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv
Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to
In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or Man-in-T
EUVD-2026-101836
GHSA-h54q-2vm3-97qv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB