CVE-2023-51385
Advisory lineage Upstream: 0 Downstream: 22
Modified
Published: 18 Dec 2023, 00:00
Last modified:12 May 2026, 11:21
Vulnerability Summary
Overall Risk (default)
medium
29/100 CVSS Score
6.5 MEDIUM
v3.1 (cve.org)
EPSS Score
17.23% MEDIUM
17% probability +0.71%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
18 Dec 2023, 00:00
Published
Vulnerability first disclosed
12 May 2026, 11:21
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v3.1•MEDIUM•Score: 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 17.23%• Percentile: 95%
Techniques & Countermeasures
- CWE-78•Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected Systems
- debian•debian_linux
10.0 | 11.0 | 12.0
- openbsd•openssh
< 9.6
References (16)
- https://www.openssh.com/txt/release-9.6
- https://www.openwall.com/lists/oss-security/2023/12/18/2
- https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
- https://www.debian.org/security/2023/dsa-5586
- https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html
- https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
- http://www.openwall.com/lists/oss-security/2023/12/26/4
- https://security.gentoo.org/glsa/202312-17
- https://security.netapp.com/advisory/ntap-20240105-0005/
- https://support.apple.com/kb/HT214084
- http://seclists.org/fulldisclosure/2024/Mar/21
- http://www.openwall.com/lists/oss-security/2025/10/07/1
- http://www.openwall.com/lists/oss-security/2025/10/12/1
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html