Skip to content

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 referenced by an expansion token in certain situations. For exampl...

MediumCVSS 6.5 EPSS 19.8%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
debian/openssh(Debian:12) < 1:9.2p1-2+deb12u2 1:9.2p1-2+deb12u2
debian/openssh(Debian:12) = 1:9.2p1-2 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u1 No fix listed
debian/openssh(Debian:13) < 1:9.6p1-1 1:9.6p1-1
debian/openssh(Debian:14) < 1:9.6p1-1 1:9.6p1-1
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1 V1.1
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
ubuntu/openssh(Ubuntu:22.04) < 1:8.9p1-3ubuntu0.6 1:8.9p1-3ubuntu0.6
ubuntu/openssh-ssh1(Ubuntu:22.04) All versions No fix listed
alpine/openssh(Alpine:v3.16) < 9.0_p1-r5 9.0_p1-r5
alpine/openssh(Alpine:v3.17) < 9.1_p1-r5 9.1_p1-r5
alpine/openssh(Alpine:v3.19) < 9.6_p1-r0 9.6_p1-r0
alpine/openssh(Alpine:v3.20) < 9.6_p1-r0 9.6_p1-r0
alpine/openssh(Alpine:v3.21) < 9.6_p1-r0 9.6_p1-r0
alpine/openssh(Alpine:v3.22) < 9.6_p1-r0 9.6_p1-r0
alpine/openssh(Alpine:v3.23) < 9.6_p1-r0 9.6_p1-r0
alpine/openssh(Alpine:v3.24) < 9.6_p1-r0 9.6_p1-r0
ubuntu/openssh(Ubuntu:24.04) < 1:9.6p1-3ubuntu1 1:9.6p1-3ubuntu1
ubuntu/openssh-ssh1(Ubuntu:24.04) All versions No fix listed
ubuntu/openssh-ssh1(Ubuntu:26.04) All versions No fix listed
ubuntu/openssh-ssh1(Ubuntu:26.10) All versions No fix listed
OpenBSD openssh < 9.6 9.6
debian linux = 10.0 No fix listed
Show 2 more
ProductAffected versionsFixed in
debian linux = 11.0 No fix listed
debian linux = 12.0 No fix listed

References