CVE-2023-51385: openssh-portable · n/a
Affects openssh-portableSource CVE Database V5
Not known to be exploited · 19% EPSS · CVSS 6.5 Medium : upgrade to 9.6 when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 19.7% chance of exploitation in 30 days – higher than 97% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 9.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Dec 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade openssh/openssh-portable to 9.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubopenssh/openssh-portablepkg:github/openssh/openssh-portableOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade all OpenSSH installations to version 9.6 or later, where this vulnerability is fixed. Until upgrades are fully deployed, organizations should implement strict input validation and sanitization for user and host names, especially in automated scripts and Git repository configurations. Restricting or auditing the use of untrusted Git repositories and submodules can reduce exposure. Employing network segmentation and limiting SSH access to trusted users and hosts can further mitigate risk. Monitoring SSH logs for unusual activity related to user or host names containing shell metacharacters can help detect exploitation attempts. Additionally, organizations should review and harden CI/CD pipelines to prevent injection of malicious repository metadata. Security teams should update incident response plans to include this vulnerability and educate developers and system administrators about the risks of untrusted repository content. Finally, applying principle of least privilege on systems running OpenSSH reduces potential damage from exploitation.
Description
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.
References
- openssh.com/txt/release-9.6 (opens in a new tab)
- openwall.com/lists/oss-security/2023/12/18/2 (opens in a new tab)
- github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a (opens in a new tab)
- debian.org/security/2023/dsa-5586 (opens in a new tab)
- vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2023/12/msg00017.html (opens in a new tab)
- openwall.com/lists/oss-security/2023/12/26/4 (opens in a new tab)
- security.gentoo.org/glsa/202312-17 (opens in a new tab)
- security.netapp.com/advisory/ntap-20240105-0005/ (opens in a new tab)
- support.apple.com/kb/HT214084 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Mar/21 (opens in a new tab)
- openwall.com/lists/oss-security/2025/10/07/1 (opens in a new tab)
- openwall.com/lists/oss-security/2025/10/12/1 (opens in a new tab)