CVE-2023-51385

6.5 MEDIUM
Published: December 18, 2023 Modified: December 18, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://www.openwall.com/lists/oss-security/2023/12/26/4
Source: cve@mitre.org
Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
Source: cve@mitre.org
Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202312-17
Source: cve@mitre.org
Third Party Advisory
https://www.debian.org/security/2023/dsa-5586
Source: cve@mitre.org
Third Party Advisory
https://www.openssh.com/txt/release-9.6
Source: cve@mitre.org
Release Notes
https://www.openwall.com/lists/oss-security/2023/12/18/2
Source: cve@mitre.org
Mailing List Release Notes
http://seclists.org/fulldisclosure/2024/Mar/21
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2023/12/26/4
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2025/10/07/1
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/10/12/1
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202312-17
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://security.netapp.com/advisory/ntap-20240105-0005/
Source: af854a3a-2127-422b-91ae-364da2661108
https://support.apple.com/kb/HT214084
Source: af854a3a-2127-422b-91ae-364da2661108
https://www.debian.org/security/2023/dsa-5586
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.openssh.com/txt/release-9.6
Source: af854a3a-2127-422b-91ae-364da2661108
Release Notes
https://www.openwall.com/lists/oss-security/2023/12/18/2
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Release Notes

24 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.5 / 10.0
EPSS (Exploit Probability)
14.2%
94th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

debian openbsd