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
02 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
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 19.75% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 97.1% of scored records. A rank, not a probability.
- NVD base score
- 6.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-10-15.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-12-18 00:00Z2 YR AGO
- Last updated
- 2026-10-15 00:16Z14 DAYS AGO
- Reserved
- 2023-12-18
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 6.5)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')Base
- Data version
- 5.2
- Document digest
- 0d0563e45f845850780c8b96d6b9c100800fce04df9e7fa22db8b53ab867968e
05 Affected products
06 References
- www.openssh.comhttps://www.openssh.com/txt/release-9.6
- www.openwall.comhttps://www.openwall.com/lists/oss-security/2023/12/18/2
- github.comhttps://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
- www.debian.orgDSA-5586https://www.debian.org/security/2023/dsa-5586
- vin01.github.iohttps://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html
- lists.debian.org[debian-lts-announce] 20231226 [SECURITY] [DLA 3694-1] openssh security updatehttps://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
- www.openwall.com[oss-security] 20231226 CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handlinghttp://www.openwall.com/lists/oss-security/2023/12/26/4
- security.gentoo.orgGLSA-202312-17https://security.gentoo.org/glsa/202312-17
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20240105-0005/
- support.apple.comhttps://support.apple.com/kb/HT214084
- seclists.org20240313 APPLE-SA-03-07-2024-2 macOS Sonoma 14.4http://seclists.org/fulldisclosure/2024/Mar/21
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/10/07/1
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/10/12/1
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-794697.html
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-769027.html
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-082556.html
07 Fixed in
AlmaLinux 8
- openssh Fixed in 8.0p1-19.el8_9.2
- openssh-askpass Fixed in 8.0p1-19.el8_9.2
- openssh-cavs Fixed in 8.0p1-19.el8_9.2
- openssh-clients Fixed in 8.0p1-19.el8_9.2
- openssh-keycat Fixed in 8.0p1-19.el8_9.2
- openssh-ldap Fixed in 8.0p1-19.el8_9.2
- openssh-server Fixed in 8.0p1-19.el8_9.2
- pam_ssh_agent_auth Fixed in 0.10.3-7.19.el8_9.2
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- openssh Fixed in 8.7p1-34.el9_3.3
- openssh-askpass Fixed in 8.7p1-34.el9_3.3
- openssh-clients Fixed in 8.7p1-34.el9_3.3
- openssh-keycat Fixed in 8.7p1-34.el9_3.3
- openssh-server Fixed in 8.7p1-34.el9_3.3
- pam_ssh_agent_auth Fixed in 0.10.4-5.34.el9_3.3
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- openssh Fixed in 8.0p1-19.el8_9.2
- openssh-askpass Fixed in 8.0p1-19.el8_9.2
- openssh-cavs Fixed in 8.0p1-19.el8_9.2
- openssh-clients Fixed in 8.0p1-19.el8_9.2
- openssh-keycat Fixed in 8.0p1-19.el8_9.2
- openssh-ldap Fixed in 8.0p1-19.el8_9.2
- openssh-server Fixed in 8.0p1-19.el8_9.2
- pam_ssh_agent_auth Fixed in 0.10.3-7.19.el8_9.2
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- openssh Fixed in 8.7p1-34.el9_3.3
- openssh-askpass Fixed in 8.7p1-34.el9_3.3
- openssh-clients Fixed in 8.7p1-34.el9_3.3
- openssh-keycat Fixed in 8.7p1-34.el9_3.3
- openssh-server Fixed in 8.7p1-34.el9_3.3
- pam_ssh_agent_auth Fixed in 0.10.4-5.34.el9_3.3
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- openssh Fixed in 1:9.2p1-2+deb12u2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- openssh Fixed in 1:9.6p1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- openssh Fixed in 1:9.6p1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- openssh Fixed in 1:8.2p1-4ubuntu0.11
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- openssh Fixed in 1:8.9p1-3ubuntu0.6
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- openssh Fixed in 1:9.6p1-3ubuntu1
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 25.10
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.04 LTS
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.10
- openssh-ssh1 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- openssh No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- openssh Fixed in 1:7.2p2-4ubuntu2.10+esm6Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- openssh Fixed in 1:7.6p1-4ubuntu0.7+esm3Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS-updates 16.04 LTS
- openssh Fixed in 1:7.2p2-4ubuntu2.fips.2.10.6Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS-updates 18.04 LTS
- openssh Fixed in 1:7.9p1-10~ubuntu18.04.fips.0.9Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS-updates 20.04 LTS
- openssh Fixed in 1:8.2p1-4ubuntu0.fips.0.11Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS 16.04 LTS
- openssh No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS 18.04 LTS
- openssh No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro FIPS 20.04 LTS
- openssh No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.