Vulnerability · Published Dec 18, 2023 · Assigned by mitre

CVE-2023-51385

Medium 6.5

In plain English

A medium-severity OS command injection in the openssh package (AlmaLinux). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 19.8% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)19.8%top 2.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8openssh8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:9openssh8.7p1-34.el9_3.3ALSA-2024:1130
AlmaLinux:8openssh-askpass8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:9openssh-askpass8.7p1-34.el9_3.3ALSA-2024:1130
AlmaLinux:8openssh-cavs8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:8openssh-clients8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:9openssh-clients8.7p1-34.el9_3.3ALSA-2024:1130
AlmaLinux:8openssh-keycat8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:9openssh-keycat8.7p1-34.el9_3.3ALSA-2024:1130
AlmaLinux:8openssh-ldap8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:8openssh-server8.0p1-19.el8_9.2ALSA-2024:0606
AlmaLinux:9openssh-server8.7p1-34.el9_3.3ALSA-2024:1130
AlmaLinux:8pam_ssh_agent_auth0.10.3-7.19.el8_9.2ALSA-2024:0606
AlmaLinux:9pam_ssh_agent_auth0.10.4-5.34.el9_3.3ALSA-2024:1130
Alpine:v3.20openssh9.6_p1-r0ALPINE-CVE-2023-51385
Alpine:v3.21openssh9.6_p1-r0ALPINE-CVE-2023-51385
Alpine:v3.22openssh9.6_p1-r0ALPINE-CVE-2023-51385
Alpine:v3.23openssh9.6_p1-r0ALPINE-CVE-2023-51385
Alpine:v3.24openssh9.6_p1-r0ALPINE-CVE-2023-51385
Debian:12openssh1:9.2p1-2+deb12u2DSA-5586-1
Debian:12openssh1:9.2p1-2+deb12u2DEBIAN-CVE-2023-51385
Debian:13openssh1:9.6p1-1DEBIAN-CVE-2023-51385
Debian:14openssh1:9.6p1-1DEBIAN-CVE-2023-51385
Rocky Linux:8openssh0:8.0p1-19.el8_9.2RLSA-2024:0606
Ubuntu:22.04:LTSopenssh1:8.9p1-3ubuntu0.6USN-6565-1
Ubuntu:22.04:LTSopenssh1:8.9p1-3ubuntu0.6UBUNTU-CVE-2023-51385
Ubuntu:24.04:LTSopenssh1:9.6p1-3ubuntu1UBUNTU-CVE-2023-51385
Ubuntu:22.04:LTSopenssh-ssh1no fix listedUBUNTU-CVE-2023-51385
Ubuntu:24.04:LTSopenssh-ssh1no fix listedUBUNTU-CVE-2023-51385
Ubuntu:25.10openssh-ssh1no fix listedUBUNTU-CVE-2023-51385
Ubuntu:26.04:LTSopenssh-ssh1no fix listedUBUNTU-CVE-2023-51385
Ubuntu:26.10openssh-ssh1no fix listedUBUNTU-CVE-2023-51385

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References