OS Command Injection in OpenSSH - CVE-2023-51385

 

OS Command Injection in OpenSSH - CVE-2023-51385

Published: December 26, 2023 / Updated: November 8, 2024


Vulnerability identifier: #VU84789
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2023-51385
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: OpenSSH
Affected software:
OpenSSH

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing user names, if a user name or host name has shell metacharacters, and this name is referenced by an expansion token in certain situations. A remote attacker can execute arbitrary OS commands via an untrusted Git repository.


How to mitigate CVE-2023-51385

Install updates from vendor's website.

Sources