Back
CVE-2023-51385
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…
Medium6.5EPSS 19.8%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 19.8% · top 2.6% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Weakness
Affected products
n/a
- affected n/a
References (16)
- https://www.openssh.com/txt/release-9.6 (opens in a new tab)x_transferred
- https://www.openwall.com/lists/oss-security/2023/12/18/2 (opens in a new tab)x_transferred
- https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a (opens in a new tab)x_transferred
- DSA-5586 (opens in a new tab)vendor-advisoryx_transferred
- https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html (opens in a new tab)x_transferred
- [debian-lts-announce] 20231226 [SECURITY] [DLA 3694-1] openssh security update (opens in a new tab)mailing-listx_transferred
- [oss-security] 20231226 CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handling (opens in a new tab)mailing-listx_transferred
- GLSA-202312-17 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20240105-0005/ (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT214084 (opens in a new tab)x_transferred
- 20240313 APPLE-SA-03-07-2024-2 macOS Sonoma 14.4 (opens in a new tab)mailing-listx_transferred
- http://www.openwall.com/lists/oss-security/2025/10/07/1 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/10/12/1 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-51385)Record last updated .