Medium severity6.5NVD Advisory· Published Dec 18, 2023· Updated May 12, 2026
CVE-2023-51385
CVE-2023-51385
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
60- OpenSSH/OpenSSHdescription
- Range: <9.6
- osv-coords54 versionspkg:rpm/almalinux/opensshpkg:rpm/almalinux/openssh-askpasspkg:rpm/almalinux/openssh-cavspkg:rpm/almalinux/openssh-clientspkg:rpm/almalinux/openssh-keycatpkg:rpm/almalinux/openssh-ldappkg:rpm/almalinux/openssh-serverpkg:rpm/almalinux/pam_ssh_agent_authpkg:rpm/opensuse/openssh-askpass-gnome&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/openssh-askpass-gnome&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/openssh&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/openssh&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/openssh&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/openssh&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/openssh&distro=openSUSE%20Tumbleweedpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP5pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP6pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/openssh-askpass-gnome&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/openssh&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/openssh&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/openssh&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/openssh&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/openssh-testuser&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 8.0p1-19.el8_9.2+ 53 more
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 8.0p1-19.el8_9.2
- (no CPE)range: < 0.10.3-7.19.el8_9.2
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-150600.6.6.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-150600.6.6.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-11.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-150600.6.6.1
- (no CPE)range: < 7.2p2-81.12.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 7.2p2-81.12.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-150600.6.6.1
- (no CPE)range: < 7.2p2-81.12.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 7.2p2-81.12.1
- (no CPE)range: < 8.1p1-150200.5.46.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 9.6p1-2.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 8.4p1-150300.3.30.1
- (no CPE)range: < 0-81.12.1
Patches
Vulnerability mechanics
References
16- github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1anvdPatch
- www.openwall.com/lists/oss-security/2023/12/26/4nvdMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2023/12/msg00017.htmlnvdMailing ListThird Party Advisory
- security.gentoo.org/glsa/202312-17nvdThird Party Advisory
- vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.htmlnvdThird Party Advisory
- www.debian.org/security/2023/dsa-5586nvdThird Party Advisory
- www.openssh.com/txt/release-9.6nvdRelease Notes
- www.openwall.com/lists/oss-security/2023/12/18/2nvdMailing ListRelease Notes
- seclists.org/fulldisclosure/2024/Mar/21nvd
- www.openwall.com/lists/oss-security/2025/10/07/1nvd
- www.openwall.com/lists/oss-security/2025/10/12/1nvd
- cert-portal.siemens.com/productcert/html/ssa-082556.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-769027.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-794697.htmlnvd
- security.netapp.com/advisory/ntap-20240105-0005/nvd
- support.apple.com/kb/HT214084nvd
News mentions
0No linked articles in our index yet.