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.
{
"license": "CC-BY-4.0",
"sources": [
{
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-51385",
"imported": "2026-04-09T14:56:18.908Z",
"id": "CVE-2023-51385",
"modified": "2025-12-18T15:15:49.263Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-51385",
"published": "2023-12-18T19:15:08.773Z"
}
]
}