VDB

CVE-2023-51385

CVE-2023-51385 PUBLISHED CVSS 6.5 MEDIUM

Reported by mitre · Published December 18, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pam_ssh_agent_authAmazon Linux0.10.4-4.8.amzn2023.0.10, 0.10.3-2.22.amzn2.0.7
openssh-clientsAmazon Linux7.4p1-22.amzn2.0.7
opensshAlpine9.6_p1-r0, 9.1_p1-r5, 9.0_p1-r5
openssh-ldapAmazon Linux7.4p1-22.amzn2.0.7
openssh-keycatAmazon Linux7.4p1-22.amzn2.0.7
opensshAmazon Linux8.7p1-8.amzn2023.0.10, 7.4p1-22.amzn2.0.7
openssh-cavsAmazon Linux7.4p1-22.amzn2.0.7
openssh-serverAmazon Linux8.7p1-8.amzn2023.0.10, 7.4p1-22.amzn2.0.7
openssh-server-sysvinitAmazon Linux7.4p1-22.amzn2.0.7
opensshopenbsd9.6
SIMATIC S7-1500 TM MFP - GNU/Linux subsystemSiemens1.1

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected products

VendorProductVersions
n/an/an/a
amazon:2pam_ssh_agent_auth0
amazon:2openssh-clients0
alpineopenssh0, 0, 0
amazon:2openssh-ldap0
amazon:2openssh-keycat0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5
amazon:2023openssh0
amazon:2023pam_ssh_agent_auth0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2openssh0
amazon:2openssh-cavs0
amazon:2openssh-server0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
amazon:2023openssh-server0
amazon:2openssh-server-sysvinit0
n/an/a*
amazon:2023openssh-keycat0
amazon:2023openssh-clients0
amazon:2openssh-askpass0

…and 1 more

Timeline

  • Dec 18, 2023 CVE Published
  • Dec 19, 2023 EPSS Score (30 in total, the first dated here)
  • Jul 3, 2024 PoC Published (2 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (15 in total, the first dated here)
  • Jan 26, 2026 CVE Updated
  • Mar 17, 2026 Security Advisory (19 in total, the first dated here)
  • Jun 2, 2026 Distribution Patch (13 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-51385
vulnetix vdb fixes CVE-2023-51385

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-51385/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›