RCE in Openbsd Openssh
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 example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.198 (97.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
Affected products
- Openbsd Openssh
- Debian Debian_linux — versions 10.0, 11.0, 12.0
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
- vin01/poc-proxycommand-vulnerable
- LtmThink/CVE-2023-51385_test
- Le1a/CVE-2023-51385
- LSP1025923/cve-2023-51385
- saarcastified/CVE-2023-51385---OpenSSH-ProxyCommand-Injection-PoC
- GroundCTL2MajorTom/CVE-2023-51385P-POC
- GroundCTL2MajorTom/CVE-2023-51385POC
- Featherw1t/CVE-2023-51385_test
- MiningBot-eth/CVE-2023-51385-exploit
- endasugrue/CVE-2023-51385_poc
References
- cve@mitre.org (Release Notes)
- cve@mitre.org (Mailing List, Release Notes)
- cve@mitre.org (Patch)
- DSA-5586 (vendor-advisory, Third Party Advisory)
- cve@mitre.org (Third Party Advisory)
- [debian-lts-announce] 20231226 [SECURITY] [DLA 3694-1] openssh security update (mailing-list, Mailing List, Third Party Advisory)
- [oss-security] 20231226 CVE-2023-51385, CVE-2023-6004: OpenSSH, libssh: Security weakness in ProxyCommand handling (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202312-17 (vendor-advisory, Third Party Advisory)
- cve@mitre.org
- cve@mitre.org
Frequently asked questions
- What is CVE-2023-51385?
- CVE-2023-51385 is a medium-severity vulnerability in Openbsd Openssh, classified under OS Command Injection. CVSS score: 6.5/10. Published 2023-12-18.
- How severe is CVE-2023-51385?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2023-51385 known to be exploited?
- 80 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.