OS Command Injection Affecting openssh-clients package, versions <0:8.0p1-7.el8_4.2


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
19.75% (98th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-OPENSSHCLIENTS-17132610
  • published2 Jun 2026
  • disclosed18 Dec 2023

Introduced: 18 Dec 2023

CVE-2023-51385  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade RHEL:8 openssh-clients to version 0:8.0p1-7.el8_4.2 or higher.
This issue was patched in RHSA-2026:22329.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openssh-clients package and not the openssh-clients package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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 Base Scores

version 3.1