Skip to main content
CVE-2023-51385VulnerabilityPublished Updated

CVE-2023-51385: openssh-portable · n/a

Affects openssh-portableSource CVE Database V5

0

Not known to be exploited · 19% EPSS · CVSS 6.5 Medium : upgrade to 9.6 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
19.7% chance of exploitation in 30 days – higher than 97% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 9.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Dec 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade openssh/openssh-portable to 9.6.

Affected software

ProductAffectedFixed in
GitHubopenssh/openssh-portablepkg:github/openssh/openssh-portableOther threatsAffected
  • <9.6
Fixed in
  • 9.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade all OpenSSH installations to version 9.6 or later, where this vulnerability is fixed. Until upgrades are fully deployed, organizations should implement strict input validation and sanitization for user and host names, especially in automated scripts and Git repository configurations. Restricting or auditing the use of untrusted Git repositories and submodules can reduce exposure. Employing network segmentation and limiting SSH access to trusted users and hosts can further mitigate risk. Monitoring SSH logs for unusual activity related to user or host names containing shell metacharacters can help detect exploitation attempts. Additionally, organizations should review and harden CI/CD pipelines to prevent injection of malicious repository metadata. Security teams should update incident response plans to include this vulnerability and educate developers and system administrators about the risks of untrusted repository content. Finally, applying principle of least privilege on systems running OpenSSH reduces potential damage from exploitation.

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

Community reviews

Loading reviews…