CVE-2023-51385CWE-78command-injection

CVE-2023-51385

Medium · published December 19, 2023

CVSS v3.1
6.5
EPSS
20%
Percentile
97.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.19753 · 97.4th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2023-12-19T00:15Z
Affected products (4)
ProductVersionsFixed in
openbsd/openssh< 9.69.6
debian/debian_linuxall versions—
debian/debian_linuxall versions—
debian/debian_linuxall versions—
References (27)
http://seclists.org/fulldisclosure/2024/Mar/21 · [email protected]http://www.openwall.com/lists/oss-security/2023/12/26/4 · [email protected]https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a · [email protected]https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html · [email protected]https://security.gentoo.org/glsa/202312-17 · [email protected]https://security.netapp.com/advisory/ntap-20240105-0005/ · [email protected]https://support.apple.com/kb/HT214084 · [email protected]https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html · [email protected]https://www.debian.org/security/2023/dsa-5586 · [email protected]https://www.openssh.com/txt/release-9.6 · [email protected]https://www.openwall.com/lists/oss-security/2023/12/18/2 · [email protected]http://seclists.org/fulldisclosure/2024/Mar/21 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2023/12/26/4 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2025/10/07/1 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2025/10/12/1 · af854a3a-2127-422b-91ae-364da2661108https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html · af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202312-17 · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20240105-0005/ · af854a3a-2127-422b-91ae-364da2661108https://support.apple.com/kb/HT214084 · af854a3a-2127-422b-91ae-364da2661108https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html · af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2023/dsa-5586 · af854a3a-2127-422b-91ae-364da2661108https://www.openssh.com/txt/release-9.6 · af854a3a-2127-422b-91ae-364da2661108https://www.openwall.com/lists/oss-security/2023/12/18/2 · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-082556.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-769027.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-794697.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 18 DEC 00:00Z
    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…
    cvelistv5