CVE-2023-51385: In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metach...
In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metacharacters, and this name is referenced by an expansion token in certain situations. For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.
Security readout for executives and security teams
Plain-English summary
CVE-2023-51385 is a client-side OpenSSH issue where crafted user or host names can be interpreted by a shell in some SSH expansion scenarios. A plausible business risk is developers or automation touching untrusted Git repositories with malicious submodule SSH URLs. It is not described as a direct server compromise.
Executive priority
Prioritize normal patch cycles for developer endpoints and automation systems, with faster action for CI environments handling third-party repositories. The risk is moderate but can affect trusted build or admin workflows.
Technical view
OpenSSH ssh before 9.6 could allow OS command injection when shell metacharacters in a user name or host name are expanded into certain configuration tokens, including cases involving ProxyCommand-style behavior. Upstream released OpenSSH 9.6 and a related commit. Vendor advisories confirm downstream package updates.
Likely exposure
Systems are most exposed where OpenSSH clients process attacker-controlled SSH destinations, such as developer workstations, CI jobs, automation, or package/build systems interacting with untrusted Git submodules or SSH URLs.
Exploitation context
The bundle does not show KEV listing or confirmed active exploitation. Public sources describe a realistic attack path using untrusted repository metadata, but successful impact depends on vulnerable client versions and unsafe expansion contexts.
Researcher notes
The affected CPE data in the bundle is incomplete, so product scope should be validated through vendor advisories. Focus analysis on OpenSSH client behavior before 9.6 and downstream package fixes, not sshd exposure.
Mitigation direction
Upgrade OpenSSH clients to 9.6 or vendor-patched packages.
Apply relevant Debian, Gentoo, Apple, NetApp, or Siemens guidance where applicable.
Review SSH configs using expansion tokens with ProxyCommand or similar shell-invoking options.
Treat untrusted Git submodule SSH URLs as unsafe input.
Restrict CI and developer workflows from automatically processing untrusted repositories.
Validation and detection
Inventory OpenSSH client versions on workstations, build agents, and servers.
Identify systems running OpenSSH before 9.6 or unpatched vendor builds.
Search SSH configs for expansion tokens in shell-invoking options.
Review CI jobs that clone or update untrusted Git submodules.
Confirm vendor advisory status for packaged products and appliances.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
3ADP providers
13Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.