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)

Published · last modified .

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.

EPSS exploit prediction

EPSS 0.198, 97.4th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

29 public repositories with exploit or proof-of-concept code for this CVE:

19 more are listed on the interactive page.

Also mentioned in 46 other repositories (0day404/HV-2024-POC, 12442RF/POC, AboSteam/POPC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References