---
title: "CVE-2023-51385"
canonical_url: "https://pkgseek.com/security/CVE-2023-51385"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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 in certain situations. For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.

CVE-2023-51385 is rated MEDIUM (6.5), with 46 indexed affected package builds across 6 distributions.

- **Severity / Score**: MEDIUM (6.5)
- **Affected builds**: 46
- **Affected distros**: 6
- **Distros with fixed_in**: Alibaba Cloud Linux, AlmaLinux, openSUSE, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | openssh | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-askpass | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-cavs | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-clients | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-keycat | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-ldap | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-server | 8.0p1-20.0.1.al8 | 8.0p1-25.0.1.1.al8 |
| Alibaba Cloud Linux | 3 | pam_ssh_agent_auth | 0.10.3-7.20.0.1.al8 | 0.10.3-7.25.0.1.1.al8 |
| AlmaLinux | 9 | pam_ssh_agent_auth | 0.10.4-10.17.el9_9.alma.1 | 8.7p1-34.el9_3.3 |
| openSUSE | 15.6 | openssh | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-askpass-gnome | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-cavs | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-clients | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-common | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-fips | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-helpers | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-server | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| openSUSE | 15.6 | openssh-server-config-disallow-rootlogin | 9.6p1-150600.6.3.1 | 9.6p1-150600.6.6.1 |
| Oracle Linux | 8 | openssh | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-askpass | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-cavs | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-clients | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-keycat | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-ldap | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | openssh-server | 8.0p1-19.el8_8 | 8.0p1-19.0.1.el8_9.2 |
| Oracle Linux | 8 | pam_ssh_agent_auth | 0.10.3-7.19.el8_8 | 0.10.3-7.19.0.1.el8_9.2 |
| Oracle Linux | 9 | openssh | 8.7p1-34.el9 | 8.7p1-34.el9_3.3 |
| Oracle Linux | 9 | openssh-askpass | 8.7p1-34.el9 | 8.7p1-34.el9_3.3 |
| Oracle Linux | 9 | openssh-clients | 8.7p1-34.el9 | 8.7p1-34.el9_3.3 |
| Oracle Linux | 9 | openssh-keycat | 8.7p1-34.el9 | 8.7p1-34.el9_3.3 |
| Oracle Linux | 9 | openssh-server | 8.7p1-34.el9 | 8.7p1-34.el9_3.3 |
| Oracle Linux | 9 | pam_ssh_agent_auth | 0.10.4-5.34.el9 | 0.10.4-5.34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | openssh | 8.7p1-30.el9_2 | 8.7p1-34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | openssh-askpass | 8.7p1-30.el9_2 | 8.7p1-34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | openssh-clients | 8.7p1-30.el9_2 | 8.7p1-34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | openssh-keycat | 8.7p1-30.el9_2 | 8.7p1-34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | openssh-server | 8.7p1-30.el9_2 | 8.7p1-34.el9_3.3 |
| Red Hat Enterprise Linux | 9.8 | pam_ssh_agent_auth | 0.10.4-5.30.el9_2 | 0.10.4-5.34.el9_3.3 |
| Ubuntu | focal | openssh-client | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.11 |
| Ubuntu | focal | openssh-server | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.11 |
| Ubuntu | focal | openssh-sftp-server | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.11 |
| Ubuntu | focal | ssh | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.11 |
| Ubuntu | jammy | openssh-client | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.6 |
| Ubuntu | jammy | openssh-server | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.6 |
| Ubuntu | jammy | openssh-sftp-server | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.6 |
| Ubuntu | jammy | ssh | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.6 |
