Vulnerability · 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…
Published Dec 18, 2023 · catalog updated Oct 15, 2026 · the affected product
Check this week
CVE-2023-51385 is not in CISA KEV. FIRST estimates a 19.75% chance of exploitation in the next 30 days. Check whether you run the affected product.
Gaps on this record
- No plain product name is stored. The page cannot tell you which product to check.
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium6.5
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 19.75%
- Remediation
- Advisory link
- Affected products
- cpe debian/debian linux · cpe openbsd/openssh
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe debian/debian linux10.0
- cpe debian/debian linux11.0
- cpe debian/debian linux12.0
- cpe openbsd/opensshversion unspecified
How to fix CVE-2023-51385
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2023-51385 is not in CISA KEV. FIRST estimates a 19.75% chance of exploitation in the next 30 days. Check whether you run the affected product.
Which versions are affected?
Compare what you have installed with debian/debian linux 10.0; debian/debian linux 11.0; debian/debian linux 12.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-78: OS Command Injection. EPSS 19.75%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Dec 18, 2023 · NIST NVD
Detected
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.
Oct 15, 2026 · NIST NVD
Updated
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.
Sources
- CVE.orgVulnerability recordCVE-2023-51385
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2023-51385
30-day exploitation probability 19.8%
first.org - NIST NVDVulnerability recordCVE-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
nvd.nist.gov
References
Freshness
Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.