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
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2023-12-18. NVD baseline CVSS 6.5; sources differ by 3.3.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.5
- EG Score
- 9.8(medium)
- EPSS
- 97.1%
- KEV
- Not listed
Published
December 18, 2023
Last Modified
July 14, 2026
Advisory Details (10)
Auto-updated Jul 14, 2026About the security content of macOS Sonoma 14.4 - Apple Support
https://support.apple.com/kb/HT214084OpenSSH: Multiple Vulnerabilities (GLSA 202312-17) — Gentoo security
https://security.gentoo.org/glsa/202312-17oss-security - CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handling
http://www.openwall.com/lists/oss-security/2023/12/26/4[SECURITY] [DLA 3694-1] openssh security update
https://lists.debian.org/debian-lts-announce/2023/12/msg00017.htmlSSH ProxyCommand == unexpected code execution (CVE-2023-51385) | Vin01’s Blog
https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.htmlcommit 7ef3787c84b6 (openssh/openssh-portable)
Fix landed in openssh/openssh-portable commit 7ef3787c84b6 — awaiting tagged release
https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1aoss-security - Announce: OpenSSH 9.6 released
https://www.openwall.com/lists/oss-security/2023/12/18/2Vendor Advisories for CVE-2023-51385(8)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:22329Red Hat Product SecurityHigh
Red Hat Security Advisory: openssh security update
- RHSA-2026:1790Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
- RHSA-2024:1383Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.0 security, enhancement, & bug fix update
- RHSA-2024:1130Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
- RHSA-2024:0606Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
- RHSA-2024:0594Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
- RHSA-2024:0455Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
- RHSA-2024:0429Red Hat Product SecurityMedium
Red Hat Security Advisory: openssh security update
Patch Availability(10)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | ssh-krb5 (1:7.2p2-4ubuntu2.10+esm6) @ xenial | 2026-05-22 | ubuntu |
| ubuntu | ssh-askpass-gnome (1:8.9p1-3ubuntu0.6) @ jammy | 2026-05-22 | ubuntu |
| ubuntu | ssh-krb5 (1:7.2p2-4ubuntu2.10+esm5) @ xenial | 2026-05-22 | ubuntu |
| redhat | openssh-0:8.7p1-13.el9_0.1 | 2026-02-03 | redhat |
| redhat | odf4/rook-ceph-rhel9-operator:v4.15.0-103 | 2024-03-19 | redhat |
| redhat | openssh-0:8.7p1-34.el9_3.3 | 2024-03-05 | redhat |
| redhat | openssh-0:8.0p1-19.el8_9.2 | 2024-01-30 | redhat |
| redhat | openssh-0:8.0p1-19.el8_8.2 | 2024-01-30 | redhat |
| redhat | openssh-0:8.7p1-30.el9_2.3 | 2024-01-25 | redhat |
| redhat | openssh-0:8.0p1-15.el8_6.3 | 2024-01-25 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(4)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2023-513852023-12-25
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.
- UbuntuUSN-6560-2MEDIUM
OpenSSH vulnerabilities
- UbuntuUSN-6560-3MEDIUM
OpenSSH vulnerability
- UbuntuUSN-6565-1MEDIUM
OpenSSH vulnerabilities
Data Freshness Timeline
(refreshed 8× in last 7d / 39× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 11:22 UTCOSV refresh
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:59 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
Show 73 moreShow fewer
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 17:35 UTCOSV refresh
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:07 UTCOSV refresh
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 05:24 UTCEG score recompute
- 2026-05-22 05:24 UTCVendor advisory
- 2026-05-22 05:24 UTCGHSA enrichment
- 2026-05-21 22:41 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Publicly available exploits
(3 references)Working exploit code is in the public domain (3 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCLtmThink/CVE-2023-51385_testFirst seen Dec 25, 2023
一个验证对CVE-2023-51385
Open source ↗ - GitHub PoCLe1a/CVE-2023-51385First seen Dec 25, 2023
OpenSSH ProxyCommand RCE
Open source ↗ - GitHub PoCvin01/poc-proxycommand-vulnerableFirst seen Sep 28, 2023
Proof of conept to exploit vulnerable proxycommand configurations on ssh clients (CVE-2023-51385)
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-78
Frequently asked(5)
What is CVE-2023-51385?
When was CVE-2023-51385 disclosed?
Is CVE-2023-51385 actively exploited?
What is the CVSS score of CVE-2023-51385?
How do I remediate CVE-2023-51385?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2023-51385
Is Your Infrastructure Affected by CVE-2023-51385?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.