CVE-2023-51385
published medium CVSS 3.1 · 6.5openssh: potential command injection via shell metacharacters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2507 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-570 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | openssh | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| Alpine Linux | edge | openssh | Fixed | 9.6_p1-r0 | Package fix record |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Debian | bookworm | openssh | Advisory build | 1:9.2p1-2+deb12u2 | DSA-5586-1 |
| Oracle Linux | 8 | opensshaarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Red Hat Enterprise Linux | RHEL-8 | opensshaarch64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| AlmaLinux | 8 | openssh-askpass | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | openssh-cavs | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | openssh-clients | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | openssh-keycat | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | openssh-ldap | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | openssh-server | Advisory build | 8.0p1-19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 8 | pam_ssh_agent_auth | Advisory build | 0.10.3-7.19.el8_9.2 | ALSA-2024:0606 |
| AlmaLinux | 9 | openssh | Advisory build | 8.7p1-34.el9_3.3 | ALSA-2024:1130 |
| AlmaLinux | 9 | openssh-askpass | Advisory build | 8.7p1-34.el9_3.3 | ALSA-2024:1130 |
| AlmaLinux | 9 | openssh-clients | Advisory build | 8.7p1-34.el9_3.3 | ALSA-2024:1130 |
| AlmaLinux | 9 | openssh-keycat | Advisory build | 8.7p1-34.el9_3.3 | ALSA-2024:1130 |
| AlmaLinux | 9 | openssh-server | Advisory build | 8.7p1-34.el9_3.3 | ALSA-2024:1130 |
| AlmaLinux | 9 | pam_ssh_agent_auth | Advisory build | 0.10.4-5.34.el9_3.3 | ALSA-2024:1130 |
| Alpine Linux | v3.16 | openssh | Fixed | 9.0_p1-r5 | Package fix record |
| Alpine Linux | v3.17 | openssh | Fixed | 9.1_p1-r5 | Package fix record |
| Alpine Linux | v3.19 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Alpine Linux | v3.20 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Alpine Linux | v3.21 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Alpine Linux | v3.22 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Alpine Linux | v3.23 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Alpine Linux | v3.24 | openssh | Fixed | 9.6_p1-r0 | Package fix record |
| Debian | bullseye | openssh | Advisory build | 1:8.4p1-5+deb11u3 | DSA-5586-1 |
| Debian | buster | openssh | Advisory build | 1:7.9p1-10+deb10u4 | DLA-3694-1 |
| Oracle Linux | 8 | opensshx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-askpassaarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-askpassx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-cavsaarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-cavsx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-clientsaarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-clientsx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-keycataarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-keycatx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-ldapaarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-ldapx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-serveraarch64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | openssh-serverx86_64 | Advisory build | 0:8.0p1-19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | pam_ssh_agent_authaarch64 | Advisory build | 0:0.10.3-7.19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 8 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.10.3-7.19.0.1.el8_9.2 | ELSA-2024-12164 |
| Oracle Linux | 9 | opensshaarch64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | opensshx86_64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-askpassaarch64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-askpassx86_64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-clientsaarch64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-clientsx86_64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-keycataarch64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-keycatx86_64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-serveraarch64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | openssh-serverx86_64 | Advisory build | 0:8.7p1-34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | pam_ssh_agent_authaarch64 | Advisory build | 0:0.10.4-5.34.el9_3.3 | ELSA-2024-1130 |
| Oracle Linux | 9 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.10.4-5.34.el9_3.3 | ELSA-2024-1130 |
| Red Hat Enterprise Linux | RHEL-8 | opensshaarch64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | opensshaarch64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | opensshppc64le | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | opensshppc64le | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | opensshppc64le | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | opensshs390x | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | opensshs390x | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | opensshs390x | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | opensshsrc | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | opensshsrc | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | opensshsrc | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | opensshsrc | Advisory build | 8.0p1-7.el8_4.2 | RHSA-2026:22329 |
| Red Hat Enterprise Linux | RHEL-8 | opensshx86_64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | opensshx86_64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | opensshx86_64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | opensshx86_64 | Advisory build | 8.0p1-7.el8_4.2 | RHSA-2026:22329 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassaarch64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassaarch64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassaarch64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassppc64le | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassppc64le | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassppc64le | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpasss390x | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpasss390x | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpasss390x | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassx86_64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassx86_64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassx86_64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoaarch64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoaarch64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoaarch64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoppc64le | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoppc64le | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoppc64le | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfos390x | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfos390x | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfos390x | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfox86_64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfox86_64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfox86_64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsaarch64 | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsaarch64 | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsaarch64 | Advisory build | 8.0p1-19.el8_9.2 | RHSA-2024:0606 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsppc64le | Advisory build | 8.0p1-15.el8_6.3 | RHSA-2024:0429 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsppc64le | Advisory build | 8.0p1-19.el8_8.2 | RHSA-2024:0594 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 to < V1.1 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
2- n/a
- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
16- 20240313 APPLE-SA-03-07-2024-2 macOS Sonoma 14.4 http://seclists.org/fulldisclosure/2024/Mar/21
- [oss-security] 20231226 CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handling http://www.openwall.com/lists/oss-security/2023/12/26/4
- 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-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
- [debian-lts-announce] 20231226 [SECURITY] [DLA 3694-1] openssh security update https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
- GLSA-202312-17 https://security.gentoo.org/glsa/202312-17
- https://security.netapp.com/advisory/ntap-20240105-0005/
- https://support.apple.com/kb/HT214084
- https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html
- DSA-5586 https://www.debian.org/security/2023/dsa-5586
- https://www.openssh.com/txt/release-9.6
- https://www.openwall.com/lists/oss-security/2023/12/18/2
Provider assertions
4mitre · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 452f00bb572aa46996d47cc95e36212d6a5662605e5ed87c7f02b6a0424e4415
- Ingested
- 15 Oct 2026, 13:09:22 UTC
- Source record
- Official CVE record