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 example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.
References
Link Resource
http://seclists.org/fulldisclosure/2024/Mar/21
http://www.openwall.com/lists/oss-security/2023/12/26/4 Mailing List Third Party Advisory
https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a Patch
https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202312-17 Third Party Advisory
https://security.netapp.com/advisory/ntap-20240105-0005/
https://support.apple.com/kb/HT214084
https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html Third Party Advisory
https://www.debian.org/security/2023/dsa-5586 Third Party Advisory
https://www.openssh.com/txt/release-9.6 Release Notes
https://www.openwall.com/lists/oss-security/2023/12/18/2 Mailing List Release Notes
http://seclists.org/fulldisclosure/2024/Mar/21
http://www.openwall.com/lists/oss-security/2023/12/26/4 Mailing List Third Party Advisory
https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a Patch
https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202312-17 Third Party Advisory
https://security.netapp.com/advisory/ntap-20240105-0005/
https://support.apple.com/kb/HT214084
https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html Third Party Advisory
https://www.debian.org/security/2023/dsa-5586 Third Party Advisory
https://www.openssh.com/txt/release-9.6 Release Notes
https://www.openwall.com/lists/oss-security/2023/12/18/2 Mailing List Release Notes
Configurations

Configuration 1 (hide)

cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*

History

21 Nov 2024, 08:37

Type Values Removed Values Added
References () http://seclists.org/fulldisclosure/2024/Mar/21 - () http://seclists.org/fulldisclosure/2024/Mar/21 -
References () http://www.openwall.com/lists/oss-security/2023/12/26/4 - Mailing List, Third Party Advisory () http://www.openwall.com/lists/oss-security/2023/12/26/4 - Mailing List, Third Party Advisory
References () https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a - Patch () https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a - Patch
References () https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html - Mailing List, Third Party Advisory () https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html - Mailing List, Third Party Advisory
References () https://security.gentoo.org/glsa/202312-17 - Third Party Advisory () https://security.gentoo.org/glsa/202312-17 - Third Party Advisory
References () https://security.netapp.com/advisory/ntap-20240105-0005/ - () https://security.netapp.com/advisory/ntap-20240105-0005/ -
References () https://support.apple.com/kb/HT214084 - () https://support.apple.com/kb/HT214084 -
References () https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html - Third Party Advisory () https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html - Third Party Advisory
References () https://www.debian.org/security/2023/dsa-5586 - Third Party Advisory () https://www.debian.org/security/2023/dsa-5586 - Third Party Advisory
References () https://www.openssh.com/txt/release-9.6 - Release Notes () https://www.openssh.com/txt/release-9.6 - Release Notes
References () https://www.openwall.com/lists/oss-security/2023/12/18/2 - Mailing List, Release Notes () https://www.openwall.com/lists/oss-security/2023/12/18/2 - Mailing List, Release Notes

13 Mar 2024, 21:15

Type Values Removed Values Added
References
  • () http://seclists.org/fulldisclosure/2024/Mar/21 -

07 Mar 2024, 19:15

Type Values Removed Values Added
References
  • () https://support.apple.com/kb/HT214084 -

05 Jan 2024, 18:15

Type Values Removed Values Added
References
  • () https://security.netapp.com/advisory/ntap-20240105-0005/ -

03 Jan 2024, 19:40

Type Values Removed Values Added
References () https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html - () https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html - Third Party Advisory
References () https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html - () https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html - Mailing List, Third Party Advisory
References () http://www.openwall.com/lists/oss-security/2023/12/26/4 - () http://www.openwall.com/lists/oss-security/2023/12/26/4 - Mailing List, Third Party Advisory
References () https://security.gentoo.org/glsa/202312-17 - () https://security.gentoo.org/glsa/202312-17 - Third Party Advisory
References () https://www.debian.org/security/2023/dsa-5586 - () https://www.debian.org/security/2023/dsa-5586 - Third Party Advisory
CVSS v2 : unknown
v3 : 9.8
v2 : unknown
v3 : 6.5
CPE cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

28 Dec 2023, 03:15

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html -
  • () https://security.gentoo.org/glsa/202312-17 -
  • () http://www.openwall.com/lists/oss-security/2023/12/26/4 -

22 Dec 2023, 14:15

Type Values Removed Values Added
References
  • () https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html -
  • () https://www.debian.org/security/2023/dsa-5586 -

22 Dec 2023, 12:15

Type Values Removed Values Added
CWE CWE-78
References () https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a - () https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a - Patch
References () https://www.openwall.com/lists/oss-security/2023/12/18/2 - () https://www.openwall.com/lists/oss-security/2023/12/18/2 - Mailing List, Release Notes
References () https://www.openssh.com/txt/release-9.6 - () https://www.openssh.com/txt/release-9.6 - Release Notes
CPE cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8

19 Dec 2023, 05:15

Type Values Removed Values Added
New CVE

Information

Published : 2023-12-18 19:15

Updated : 2024-11-21 08:37


NVD link : CVE-2023-51385

Mitre link : CVE-2023-51385

CVE.ORG link : CVE-2023-51385


JSON object : View

Products Affected

debian

  • debian_linux

openbsd

  • openssh
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')