CVE-2023-51385

medium

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.

References

https://github.com/LSP1025923/cve-2023-51385

https://github.com/harshweb-cyber/Netscout

https://github.com/Nnamdi489/vulnerability-assessment-lab

https://github.com/AbdulMoiz6692/cve-vulnerability-scanner-pro

https://github.com/RehmanAjaz/CVE-Scanner

https://github.com/asif-kabir-emon/ip-vulnerability-monitor-cve-analysis

https://github.com/runooovb/CVE-2023-51385test

https://github.com/saarcastified/CVE-2023-51385---OpenSSH-ProxyCommand-Injection-PoC

https://github.com/GroundCTL2MajorTom/CVE-2023-51385POC

https://github.com/krlabs/openssh-vulnerabilities

https://github.com/Featherw1t/CVE-2023-51385_test

https://github.com/thinkliving2020/CVE-2023-51385-

https://github.com/2048JiaLi/CVE-2023-51385

https://github.com/farliy-hacker/CVE-2023-51385-save

https://github.com/farliy-hacker/CVE-2023-51385

https://github.com/N0rther/CVE-2023-51385_TT

https://github.com/siyi-star/CVE-2023-51385_test-star-main

https://github.com/zls1793/CVE-2023-51385_test

https://www.openwall.com/lists/oss-security/2023/12/18/2

https://www.openssh.com/txt/release-9.6

https://support.apple.com/kb/HT214084

https://security.netapp.com/advisory/ntap-20240105-0005/

https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a

https://cert-portal.siemens.com/productcert/html/ssa-794697.html

https://cert-portal.siemens.com/productcert/html/ssa-769027.html

https://cert-portal.siemens.com/productcert/html/ssa-082556.html

http://www.openwall.com/lists/oss-security/2025/10/12/1

http://www.openwall.com/lists/oss-security/2025/10/07/1

http://seclists.org/fulldisclosure/2024/Mar/21

Details

Source: Mitre, NVD

Published: 2023-12-18

Updated: 2026-05-12

Risk Information

CVSS v2

Base Score: 6.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Severity: Medium

EPSS

EPSS: 0.14453