Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openbsd | Openssh | < 9.6 |
| Debian | Debian Linux | 10.0 |
Related Weaknesses (CWE)
References
- http://seclists.org/fulldisclosure/2024/Mar/21
- http://www.openwall.com/lists/oss-security/2023/12/26/4Mailing ListThird Party Advisory
- https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26cPatch
- https://lists.debian.org/debian-lts-announce/2023/12/msg00017.htmlMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202312-17Third Party Advisory
- https://security.netapp.com/advisory/ntap-20240105-0005/
- https://support.apple.com/kb/HT214084
- https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-executThird Party Advisory
- https://www.debian.org/security/2023/dsa-5586Third Party Advisory
- https://www.openssh.com/txt/release-9.6Release Notes
- https://www.openwall.com/lists/oss-security/2023/12/18/2Mailing ListRelease Notes
- http://seclists.org/fulldisclosure/2024/Mar/21
- http://www.openwall.com/lists/oss-security/2023/12/26/4Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2025/10/07/1
- http://www.openwall.com/lists/oss-security/2025/10/12/1
FAQ
What is CVE-2023-51385?
CVE-2023-51385 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 exampl...
How severe is CVE-2023-51385?
CVE-2023-51385 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-51385?
Check the references section above for vendor advisories and patch information. Affected products include: Openbsd Openssh, Debian Debian Linux.