
CVE catalog
CVE-2023-51385
openssh: CVE-2023-51385
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 19.75% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | openssh | sid | 1:10.6p1-1 | fixed |
| Debian | openssh | forky | 1:10.6p1-1 | fixed |
| Debian | openssh | trixie | 1:10.0p1-7+deb13u4 | fixed |
| Debian | openssh | trixie-security | 1:10.0p1-7+deb13u2 | fixed |
| Debian | openssh | bookworm | 1:9.2p1-2+deb12u10 | fixed |
| Debian | openssh | bookworm-security | 1:9.2p1-2+deb12u9 | fixed |
| Cpe | openssh | Not reported | 9.6 | fixed |
| Cpe | debian_linux | Not reported | Not reported | unknown |
| Alpine | openssh | 3.16 | 9.0_p1-r5 | fixed |
| Alpine | openssh | 3.17 | 9.1_p1-r5 | fixed |
| Alpine | openssh | 3.19 | 9.6_p1-r0 | fixed |
| Alpine | openssh | 3.20 | 9.6_p1-r0 | fixed |
| Alpine | openssh | 3.21 | 9.6_p1-r0 | fixed |
| Alpine | openssh | 3.22 | 9.6_p1-r0 | fixed |
| Alpine | openssh | 3.23 | 9.6_p1-r0 | fixed |
| Alpine | openssh | 3.24 | 9.6_p1-r0 | fixed |
| Ubuntu | openssh | pro | 1:6.9p1-2 | vulnerable |
| Ubuntu | openssh | pro | 1:6.9p1-3 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p1-1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p1-3 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p1-4 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p1-6 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p2-1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.1p2-2 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p1-1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-2 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-3 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.2 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.4 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.5 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.6 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.7 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.8 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm1 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm2 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm3 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm4 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm5 | vulnerable |
| Ubuntu | openssh | pro | 1:7.2p2-4ubuntu2.10+esm6 | fixed |
| Opensuse | openssh | tumbleweed | 9.6p1-11.1 | fixed |
| Suse | openssh | linux enterprise module for basesystem 15 sp6 | 9.6p1-150600.6.6.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise module for desktop applications 15 sp6 | 9.6p1-150600.6.6.1 | fixed |
| Opensuse | openssh | leap 15.6 | 9.6p1-150600.6.6.1 | fixed |
| Opensuse | openssh-askpass-gnome | leap 15.6 | 9.6p1-150600.6.6.1 | fixed |
| Suse | openssh-testuser | linux enterprise software development kit 12 sp5 | 0-81.12.1 | fixed |
| Suse | openssh | linux enterprise server 12 sp5 | 7.2p2-81.12.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server 12 sp5 | 7.2p2-81.12.1 | fixed |
| Suse | openssh | linux enterprise server for sap applications 12 sp5 | 7.2p2-81.12.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server for sap applications 12 sp5 | 7.2p2-81.12.1 | fixed |
| Suse | openssh | linux enterprise high performance computing 15 sp2-ltss | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise high performance computing 15 sp2-ltss | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh | linux enterprise server 15 sp2-ltss | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server 15 sp2-ltss | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh | linux enterprise server for sap applications 15 sp2 | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server for sap applications 15 sp2 | 8.1p1-150200.5.46.1 | fixed |
| Suse | openssh | linux enterprise micro 5.3 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise micro 5.4 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise micro 5.5 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise module for basesystem 15 sp5 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise module for desktop applications 15 sp5 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise high performance computing 15 sp3-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise high performance computing 15 sp3-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise high performance computing 15 sp4-espos | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise high performance computing 15 sp4-espos | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise high performance computing 15 sp4-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise high performance computing 15 sp4-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise server 15 sp3-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server 15 sp3-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise server 15 sp4-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server 15 sp4-ltss | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise server for sap applications 15 sp3 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server for sap applications 15 sp3 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise server for sap applications 15 sp4 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | linux enterprise server for sap applications 15 sp4 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | manager proxy 4.3 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | manager server 4.3 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise micro 5.1 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | linux enterprise micro 5.2 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh | enterprise storage 7.1 | 8.4p1-150300.3.30.1 | fixed |
| Suse | openssh-askpass-gnome | enterprise storage 7.1 | 8.4p1-150300.3.30.1 | fixed |
| Opensuse | openssh | leap micro 5.3 | 8.4p1-150300.3.30.1 | fixed |
| Opensuse | openssh | leap micro 5.4 | 8.4p1-150300.3.30.1 | fixed |
| Opensuse | openssh | leap 15.5 | 8.4p1-150300.3.30.1 | fixed |
| Opensuse | openssh-askpass-gnome | leap 15.5 | 8.4p1-150300.3.30.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | openssh | source | sid | 1:9.6p1-1 | not yet assigned | Not reported | Not reported |
| Debian | openssh | source | forky | 1:9.6p1-1 | not yet assigned | Not reported | Not reported |
| Debian | openssh | source | trixie | 1:9.6p1-1 | not yet assigned | Not reported | Not reported |
| Debian | openssh | source | bookworm | 1:9.2p1-2+deb12u2 | not yet assigned | Not reported | Not reported |
| Cpe | openssh | cpe | Not reported | 9.6 | Not reported | NVD-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.16 | 9.0_p1-r5 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.17 | 9.1_p1-r5 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.19 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.20 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.21 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.22 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.23 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Alpine | openssh | apk | 3.24 | 9.6_p1-r0 | Not reported | ALPINE-CVE-2023-51385 | Not reported |
| Ubuntu | openssh | deb | pro | 1:7.2p2-4ubuntu2.10+esm6 | Not reported | USN-6560-3 | Not reported |
| Opensuse | openssh | rpm | tumbleweed | 9.6p1-11.1 | Not reported | OPENSUSE-SU-2024:14113-1 | Not reported |
| Suse | openssh | rpm | linux enterprise module for basesystem 15 sp6 | 9.6p1-150600.6.6.1 | Not reported | SUSE-SU-2024:2393-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise module for desktop applications 15 sp6 | 9.6p1-150600.6.6.1 | Not reported | SUSE-SU-2024:2393-1 | Not reported |
| Opensuse | openssh | rpm | leap 15.6 | 9.6p1-150600.6.6.1 | Not reported | SUSE-SU-2024:2393-1 | Not reported |
| Opensuse | openssh-askpass-gnome | rpm | leap 15.6 | 9.6p1-150600.6.6.1 | Not reported | SUSE-SU-2024:2393-1 | Not reported |
| Suse | openssh-testuser | rpm | linux enterprise software development kit 12 sp5 | 0-81.12.1 | Not reported | SUSE-SU-2024:0604-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server 12 sp5 | 7.2p2-81.12.1 | Not reported | SUSE-SU-2024:0604-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server 12 sp5 | 7.2p2-81.12.1 | Not reported | SUSE-SU-2024:0604-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server for sap applications 12 sp5 | 7.2p2-81.12.1 | Not reported | SUSE-SU-2024:0604-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server for sap applications 12 sp5 | 7.2p2-81.12.1 | Not reported | SUSE-SU-2024:0604-1 | Not reported |
| Suse | openssh | rpm | linux enterprise high performance computing 15 sp2-ltss | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise high performance computing 15 sp2-ltss | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server 15 sp2-ltss | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server 15 sp2-ltss | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server for sap applications 15 sp2 | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server for sap applications 15 sp2 | 8.1p1-150200.5.46.1 | Not reported | SUSE-SU-2024:0603-1 | Not reported |
| Suse | openssh | rpm | linux enterprise micro 5.3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise micro 5.4 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise micro 5.5 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise module for basesystem 15 sp5 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise module for desktop applications 15 sp5 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise high performance computing 15 sp3-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise high performance computing 15 sp3-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise high performance computing 15 sp4-espos | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise high performance computing 15 sp4-espos | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise high performance computing 15 sp4-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise high performance computing 15 sp4-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server 15 sp3-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server 15 sp3-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server 15 sp4-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server 15 sp4-ltss | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server for sap applications 15 sp3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server for sap applications 15 sp3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise server for sap applications 15 sp4 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | linux enterprise server for sap applications 15 sp4 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | manager proxy 4.3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | manager server 4.3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise micro 5.1 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | linux enterprise micro 5.2 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh | rpm | enterprise storage 7.1 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Suse | openssh-askpass-gnome | rpm | enterprise storage 7.1 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Opensuse | openssh | rpm | leap micro 5.3 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Opensuse | openssh | rpm | leap micro 5.4 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Opensuse | openssh | rpm | leap 15.5 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
| Opensuse | openssh-askpass-gnome | rpm | leap 15.5 | 8.4p1-150300.3.30.1 | Not reported | SUSE-SU-2024:0596-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-794697.json]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_0596-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2023-51385]
- [https://osv.dev/vulnerability/ALPINE-CVE-2023-51385]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-51385]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0596-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0603-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0604-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2393-1]
- [https://osv.dev/vulnerability/USN-6560-3]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14113-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-51385]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-51385.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-3182.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]