Original 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.
Affected software
- OpenSSH < 9.6 Fixed in: 9.6 exact match
Details
- Published
- 2023-12-18
- Last modified
- 2026-10-15
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N- CWE
- CWE-78
- EPSS (30-day exploit probability)
- 19.75% (percentile 97)
References
- cve.org/CVE-2023-51385
- nvd.nist.gov/vuln/detail/CVE-2023-51385
- seclists.org/fulldisclosure/2024/Mar/21
- www.openwall.com/lists/oss-security/2023/12/26/4
- github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
- lists.debian.org/debian-lts-announce/2023/12/msg00017.html
- security.gentoo.org/glsa/202312-17
- security.netapp.com/advisory/ntap-20240105-0005/
- support.apple.com/kb/HT214084
- vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/ope...
- www.debian.org/security/2023/dsa-5586
- www.openssh.com/txt/release-9.6
- www.openwall.com/lists/oss-security/2023/12/18/2
- www.openwall.com/lists/oss-security/2025/10/07/1
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.