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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian linux | = 11.0 | No fix listed |
| debian linux | = 12.0 | No fix listed |
References
- Debian Security Tracker CVE-2023-51385 vendor-advisory
- www.openssh.com release-notes
- www.openwall.com mailing-list release-notes
- github.com patch
- DSA-5586 third-party-advisory vendor-advisory
- vin01.github.io third-party-advisory
- [debian-lts-announce] 20231226 [SECURITY] [DLA 3694-1] openssh security update mailing-list third-party-advisory
- [oss-security] 20231226 CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handling mailing-list third-party-advisory
- GLSA-202312-17 third-party-advisory vendor-advisory
- security.netapp.com
- support.apple.com
- 20240313 APPLE-SA-03-07-2024-2 macOS Sonoma 14.4 mailing-list
- www.openwall.com
- www.openwall.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-6565-1 vendor-advisory
- USN-6560-2 vendor-advisory
- USN-6560-3 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory