{"id":"CVE-2023-51385","published":"2023-12-18T00:00:00Z","modified":"2026-10-15T00:16:48Z","title":"In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metacharacters…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.19753,"percentile":0.97469,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://www.openssh.com/txt/release-9.6","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2023/12/18/2","tags":[]},{"url":"https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a","tags":[]},{"url":"https://www.debian.org/security/2023/dsa-5586","tags":["vendor-advisory"]},{"url":"https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/12/26/4","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202312-17","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240105-0005/","tags":[]},{"url":"https://support.apple.com/kb/HT214084","tags":[]},{"url":"http://seclists.org/fulldisclosure/2024/Mar/21","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/07/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/12/1","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-769027.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":19.49},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"pocGithub":{"count":12,"skipped":11,"earliest":"2023-09-28","earliestUrl":"https://github.com/vin01/poc-proxycommand-vulnerable","repos":[{"name":"vin01/poc-proxycommand-vulnerable","url":"https://github.com/vin01/poc-proxycommand-vulnerable","stars":50,"created":"2023-09-28"},{"name":"LtmThink/CVE-2023-51385_test","url":"https://github.com/LtmThink/CVE-2023-51385_test","stars":7,"created":"2023-12-25"},{"name":"Le1a/CVE-2023-51385","url":"https://github.com/Le1a/CVE-2023-51385","stars":5,"created":"2023-12-25"},{"name":"WOOOOONG/CVE-2023-51385","url":"https://github.com/WOOOOONG/CVE-2023-51385","stars":2,"created":"2024-01-02"},{"name":"WLaoDuo/CVE-2023-51385_poc-test","url":"https://github.com/WLaoDuo/CVE-2023-51385_poc-test","stars":0,"created":"2023-12-26"}]},"first":{"date":"2023-09-28","source":"PoC-in-GitHub","url":"https://github.com/vin01/poc-proxycommand-vulnerable"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-08-15T14:20:00.630258Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is an OS command injection weakness in the ssh component of OpenSSH before 9.6, where shell metacharacters in a user name or host name can be interpreted as commands when that name is referenced by an expansion token in certain situations. An attacker can exploit it by supplying a crafted name, for example via an untrusted Git repository whose submodule contains shell metacharacters in a user or host name, so that command execution occurs when the affected expansion is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:33Z"},"euvd":{"id":"EUVD-2023-56106","exploited":false,"provenance":"source"}}