CVE-2023-51385

MEDIUMPre-NVD 6.59.8
EchelonGraph scoreMEDIUM confidence

Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2023-12-18. NVD baseline CVSS 6.5; sources differ by 3.3.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, nvd
Elevated
6.5
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS: 20%CVSS: 6.5Exploit: NoneExposed: 0

A fix is available — apply it.

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.

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, 2026
⚠️ Active exploitation confirmed. Patch available. Sources: github_commit.
generic

About the security content of macOS Sonoma 14.4 - Apple Support

https://support.apple.com/kb/HT214084
generic

OpenSSH: Multiple Vulnerabilities (GLSA 202312-17) — Gentoo security

https://security.gentoo.org/glsa/202312-17
generic🔴 Active Exploitation

oss-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
generic Patch Available

[SECURITY] [DLA 3694-1] openssh security update

https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html
generic🔴 Active Exploitation

SSH 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.html
generic

[SECURITY] [DSA 5586-1] openssh security update

https://www.debian.org/security/2023/dsa-5586
github_commit

commit 7ef3787c84b6 (openssh/openssh-portable)

Fix landed in openssh/openssh-portable commit 7ef3787c84b6 — awaiting tagged release

https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
generic

oss-security - Announce: OpenSSH 9.6 released

https://www.openwall.com/lists/oss-security/2023/12/18/2

Patch Availability(10)

Vendor / EcosystemFixed in / PatchReleasedSource
ubuntussh-krb5 (1:7.2p2-4ubuntu2.10+esm6) @ xenial2026-05-22ubuntu
ubuntussh-askpass-gnome (1:8.9p1-3ubuntu0.6) @ jammy2026-05-22ubuntu
ubuntussh-krb5 (1:7.2p2-4ubuntu2.10+esm5) @ xenial2026-05-22ubuntu
redhatopenssh-0:8.7p1-13.el9_0.12026-02-03redhat
redhatodf4/rook-ceph-rhel9-operator:v4.15.0-1032024-03-19redhat
redhatopenssh-0:8.7p1-34.el9_3.32024-03-05redhat
redhatopenssh-0:8.0p1-19.el8_9.22024-01-30redhat
redhatopenssh-0:8.0p1-19.el8_8.22024-01-30redhat
redhatopenssh-0:8.7p1-30.el9_2.32024-01-25redhat
redhatopenssh-0:8.0p1-15.el8_6.32024-01-25redhat

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)

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.

  1. 2026-07-16 17:01 UTCEPSS rescore
  2. 2026-07-15 16:56 UTCEPSS rescore
  3. 2026-07-15 16:56 UTCEPSS rescore
  4. 2026-07-13 22:28 UTCEPSS rescore
  5. 2026-07-13 22:28 UTCEPSS rescore
  6. 2026-07-12 05:45 UTCEPSS rescore
  7. 2026-07-11 11:22 UTCOSV refresh
  8. 2026-07-11 08:26 UTCEPSS rescore
  9. 2026-07-09 19:08 UTCEPSS rescore
  10. 2026-07-08 15:13 UTCEPSS rescore
  11. 2026-07-07 13:44 UTCEPSS rescore
  12. 2026-07-07 13:44 UTCEPSS rescore
  13. 2026-07-06 16:26 UTCEPSS rescore
  14. 2026-07-06 16:26 UTCEPSS rescore
  15. 2026-07-06 02:22 UTCEPSS rescore
  16. 2026-07-04 06:29 UTCEPSS rescore
  17. 2026-07-04 06:29 UTCEPSS rescore
  18. 2026-07-02 16:59 UTCEPSS rescore
  19. 2026-07-01 15:05 UTCEPSS rescore
  20. 2026-06-29 14:05 UTCEPSS rescore
  21. 2026-06-28 14:06 UTCEPSS rescore
  22. 2026-06-28 14:06 UTCEPSS rescore
  23. 2026-06-28 04:55 UTCEPSS rescore
  24. 2026-06-27 03:07 UTCEPSS rescore
  25. 2026-06-25 13:48 UTCEPSS rescore
Show 73 more
  1. 2026-06-25 13:48 UTCEPSS rescore
  2. 2026-06-24 14:04 UTCEPSS rescore
  3. 2026-06-24 14:04 UTCEPSS rescore
  4. 2026-06-23 21:31 UTCEPSS rescore
  5. 2026-06-23 21:31 UTCEPSS rescore
  6. 2026-06-22 17:35 UTCOSV refresh
  7. 2026-06-22 14:24 UTCEPSS rescore
  8. 2026-06-22 14:24 UTCEPSS rescore
  9. 2026-06-21 14:55 UTCEPSS rescore
  10. 2026-06-21 14:55 UTCEPSS rescore
  11. 2026-06-21 01:58 UTCEPSS rescore
  12. 2026-06-21 01:58 UTCEPSS rescore
  13. 2026-06-18 17:51 UTCEPSS rescore
  14. 2026-06-17 17:51 UTCEPSS rescore
  15. 2026-06-16 17:51 UTCEPSS rescore
  16. 2026-06-16 17:51 UTCEPSS rescore
  17. 2026-06-15 17:47 UTCEPSS rescore
  18. 2026-06-14 23:16 UTCEPSS rescore
  19. 2026-06-13 22:59 UTCEPSS rescore
  20. 2026-06-13 22:59 UTCEPSS rescore
  21. 2026-06-12 23:11 UTCEPSS rescore
  22. 2026-06-12 23:10 UTCEPSS rescore
  23. 2026-06-11 13:59 UTCEPSS rescore
  24. 2026-06-10 22:17 UTCEPSS rescore
  25. 2026-06-10 13:21 UTCEPSS rescore
  26. 2026-06-07 15:24 UTCEPSS rescore
  27. 2026-06-07 15:23 UTCEPSS rescore
  28. 2026-06-05 22:46 UTCEPSS rescore
  29. 2026-06-05 22:46 UTCEPSS rescore
  30. 2026-06-05 06:09 UTCEPSS rescore
  31. 2026-06-05 06:09 UTCEPSS rescore
  32. 2026-06-05 06:09 UTCEPSS rescore
  33. 2026-06-05 06:07 UTCOSV refresh
  34. 2026-06-04 13:11 UTCEPSS rescore
  35. 2026-06-04 13:11 UTCEPSS rescore
  36. 2026-06-04 13:11 UTCEPSS rescore
  37. 2026-06-02 20:12 UTCEPSS rescore
  38. 2026-06-02 20:12 UTCEPSS rescore
  39. 2026-06-01 13:51 UTCEPSS rescore
  40. 2026-06-01 13:51 UTCEPSS rescore
  41. 2026-05-31 22:30 UTCEPSS rescore
  42. 2026-05-31 22:30 UTCEPSS rescore
  43. 2026-05-31 00:15 UTCEPSS rescore
  44. 2026-05-31 00:15 UTCEPSS rescore
  45. 2026-05-29 13:43 UTCEPSS rescore
  46. 2026-05-28 13:44 UTCEPSS rescore
  47. 2026-05-27 13:39 UTCEPSS rescore
  48. 2026-05-27 13:39 UTCEPSS rescore
  49. 2026-05-26 13:43 UTCEPSS rescore
  50. 2026-05-26 13:43 UTCEPSS rescore
  51. 2026-05-22 21:16 UTCEPSS rescore
  52. 2026-05-22 21:16 UTCEPSS rescore
  53. 2026-05-22 21:16 UTCEPSS rescore
  54. 2026-05-22 21:16 UTCEPSS rescore
  55. 2026-05-22 21:16 UTCEPSS rescore
  56. 2026-05-22 05:24 UTCEG score recompute
  57. 2026-05-22 05:24 UTCVendor advisory
  58. 2026-05-22 05:24 UTCGHSA enrichment
  59. 2026-05-21 22:41 UTCEPSS rescore
  60. 2026-05-20 22:37 UTCEPSS rescore
  61. 2026-05-20 22:37 UTCEPSS rescore
  62. 2026-05-20 22:37 UTCEPSS rescore
  63. 2026-05-20 22:37 UTCEPSS rescore
  64. 2026-05-20 22:37 UTCEPSS rescore
  65. 2026-05-20 11:21 UTCEPSS rescore
  66. 2026-05-20 11:21 UTCEPSS rescore
  67. 2026-05-20 11:21 UTCEPSS rescore
  68. 2026-05-20 11:21 UTCEPSS rescore
  69. 2026-05-20 11:21 UTCEPSS rescore
  70. 2026-05-18 21:30 UTCEPSS rescore
  71. 2026-05-18 21:30 UTCEPSS rescore
  72. 2026-05-18 21:30 UTCEPSS rescore
  73. 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_test
    First seen Dec 25, 2023

    一个验证对CVE-2023-51385

    Open source ↗
  • GitHub PoCLe1a/CVE-2023-51385
    First seen Dec 25, 2023

    OpenSSH ProxyCommand RCE

    Open source ↗
  • GitHub PoCvin01/poc-proxycommand-vulnerable
    First seen Sep 28, 2023

    Proof of conept to exploit vulnerable proxycommand configurations on ssh clients (CVE-2023-51385)

    Open source ↗

Frequently asked(5)

What is CVE-2023-51385?
CVE-2023-51385 is a medium vulnerability published on December 18, 2023. 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…
When was CVE-2023-51385 disclosed?
CVE-2023-51385 was first published in the National Vulnerability Database on December 18, 2023, with the most recent update on July 14, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2023-51385 actively exploited?
CVE-2023-51385 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 97.1% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2023-51385?
CVE-2023-51385 has a CVSS v3.1 base score of 6.5 (CISA-ADP / Vulnrichment enrichment; NVD's own analysis pending). EchelonGraph synthesises NVD + CISA KEV + FIRST EPSS + GHSA into a combined EG score of 9.8.
How do I remediate CVE-2023-51385?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2023-51385, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2023-51385

Explore →

Is Your Infrastructure Affected by CVE-2023-51385?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.