Skip to content
Fencer Vulns
medium 6.5

CVE-2023-51385 json

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 refer…

published 2023-12-18 2 y ago modified 2026-10-15 25 d ago also EUVD-2023-56106 , JLSEC-2026-70

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
19.8%
EPSS 19.8% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia OpenSSH_jll 9.9.1+0
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem V1.1
  • openssh Debian 12 1:9.2p1-2+deb12u2
  • openssh Debian 14, Debian 13 1:9.6p1-1

debian advisories DEBIAN-CVE-2023-51385

  • openssh Ubuntu 20.04 LTS 1:8.2p1-4ubuntu0.11
  • openssh Ubuntu 22.04 LTS 1:8.9p1-3ubuntu0.6
  • openssh Ubuntu 24.04 LTS 1:9.6p1-3ubuntu1
  • openssh Ubuntu Pro 16.04 LTS 1:7.2p2-4ubuntu2.10+esm6
  • openssh Ubuntu Pro FIPS-updates 16.04 LTS 1:7.2p2-4ubuntu2.fips.2.10.6
  • openssh Ubuntu Pro 18.04 LTS 1:7.6p1-4ubuntu0.7+esm3
  • openssh Ubuntu Pro FIPS-updates 18.04 LTS 1:7.9p1-10~ubuntu18.04.fips.0.9
  • openssh Ubuntu Pro FIPS-updates 20.04 LTS 1:8.2p1-4ubuntu0.fips.0.11

ubuntu advisories UBUNTU-CVE-2023-51385

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • openssh RHEL 9 8.7p1-34.el9_3.3
  • openssh-keycat RHEL 9 8.7p1-34.el9_3.3
  • openssh-server RHEL 9 8.7p1-34.el9_3.3
  • openssh-askpass RHEL 9 8.7p1-34.el9_3.3
  • openssh-clients RHEL 9 8.7p1-34.el9_3.3
  • pam_ssh_agent_auth RHEL 9 0.10.4-5.34.el9_3.3
  • openssh RHEL 8 8.0p1-19.el8_9.2
  • openssh-cavs RHEL 8 8.0p1-19.el8_9.2

red hat advisories RHSA-2026:22329RHSA-2026:1790RHSA-2024:1130RHSA-2024:0429RHSA-2024:0455RHSA-2024:0606

  • openssh Linux Micro 6.0 9.6p1-2.1
  • openssh SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 9.6p1-150600.6.6.1
  • openssh-askpass-gnome SLE Module for Desktop Applications 15 SP6, openSUSE Leap 15.6 9.6p1-150600.6.6.1
  • openssh SLES for SAP 12 SP5, SLES 12 SP5 7.2p2-81.12.1
  • openssh-testuser SLE Software Development Kit 12 SP5 0-81.12.1
  • openssh-askpass-gnome SLES for SAP 12 SP5, SLES 12 SP5 7.2p2-81.12.1
  • openssh SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +16 more 8.4p1-150300.3.30.1
  • openssh-askpass-gnome SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +7 more 8.4p1-150300.3.30.1

suse advisories SUSE-SU-2025:20009-1SUSE-SU-2024:2393-1SUSE-SU-2024:0604-1SUSE-SU-2024:0603-1SUSE-SU-2024:0596-1

  • openssh openSUSE Tumbleweed 9.6p1-11.1

opensuse advisories openSUSE-SU-2024:14113-1

  • openssh AlmaLinux 9 8.7p1-34.el9_3.3
  • openssh-keycat AlmaLinux 9 8.7p1-34.el9_3.3
  • openssh-server AlmaLinux 9 8.7p1-34.el9_3.3
  • openssh-askpass AlmaLinux 9 8.7p1-34.el9_3.3
  • openssh-clients AlmaLinux 9 8.7p1-34.el9_3.3
  • pam_ssh_agent_auth AlmaLinux 9 0.10.4-5.34.el9_3.3
  • openssh AlmaLinux 8 8.0p1-19.el8_9.2
  • openssh-cavs AlmaLinux 8 8.0p1-19.el8_9.2

almalinux advisories ALSA-2024:1130ALSA-2024:0606

  • openssh Rocky Linux 8 8.0p1-19.el8_9.2

rocky linux advisories RLSA-2024:0606

  • openssh Alpine 3.16 9.0_p1-r5
  • openssh Alpine 3.17 9.1_p1-r5
  • openssh Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 9.6_p1-r0

alpine advisories ALPINE-CVE-2023-51385

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • openssh CBL-Mariner 2.0 8.9p1-3
  • openssh Azure Linux 3.0 9.7p1-1

azure linux advisories AZL-32203AZL-35082

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-51385 updated cvss 6.5

openssh: potential command injection via shell metacharacters

  • Red Hat Enterprise Linux 6 openssh, openssh-ldap, openssh-server, openssh-askpass, openssh-clients, pam_ssh_agent_auth Red Hat Enterprise Linux 7 openssh, openssh-cavs, openssh-ldap, openssh-keycat, openssh-server, openssh-askpass, +3 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 8) openssh-askpass 8.0p1-19.el8_9.2
    fixed: vendor fix RHSA-2024:0606
  • Red Hat Enterprise Linux AppStream (v. 9) openssh-askpass 8.7p1-34.el9_3.3, pam_ssh_agent_auth 0.10.4-5.34.el9_3.3
    fixed: vendor fix RHSA-2024:1130
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) openssh-askpass 8.7p1-13.el9_0.1, pam_ssh_agent_auth 0.10.4-4.13.el9_0.4
    fixed: vendor fix RHSA-2026:1790
  • Red Hat Enterprise Linux AppStream EUS (v.8.6) openssh-askpass 8.0p1-15.el8_6.3
    fixed: vendor fix RHSA-2024:0429
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) openssh-askpass 8.0p1-19.el8_8.2
    fixed: vendor fix RHSA-2024:0594
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) openssh-askpass 8.7p1-30.el9_2.3, pam_ssh_agent_auth 0.10.4-5.30.el9_2.3
    fixed: vendor fix RHSA-2024:0455
  • Red Hat Enterprise Linux BaseOS (v. 8) openssh 8.0p1-19.el8_9.2, openssh-cavs 8.0p1-19.el8_9.2, openssh-ldap 8.0p1-19.el8_9.2, openssh-keycat 8.0p1-19.el8_9.2, openssh-server 8.0p1-19.el8_9.2, openssh-clients 8.0p1-19.el8_9.2, +1 more
    fixed: vendor fix RHSA-2024:0606
show 9 more
  • Red Hat Enterprise Linux BaseOS (v. 9) openssh 8.7p1-34.el9_3.3, openssh-keycat 8.7p1-34.el9_3.3, openssh-server 8.7p1-34.el9_3.3, openssh-clients 8.7p1-34.el9_3.3
    fixed: vendor fix RHSA-2024:1130
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) openssh 8.0p1-7.el8_4.2, openssh-clients 8.0p1-7.el8_4.2
    fixed: vendor fix RHSA-2026:22329
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) openssh 8.7p1-13.el9_0.1, openssh-keycat 8.7p1-13.el9_0.1, openssh-server 8.7p1-13.el9_0.1, openssh-clients 8.7p1-13.el9_0.1
    fixed: vendor fix RHSA-2026:1790
  • Red Hat Enterprise Linux BaseOS EUS (v.8.6) openssh 8.0p1-15.el8_6.3, openssh-cavs 8.0p1-15.el8_6.3, openssh-ldap 8.0p1-15.el8_6.3, openssh-keycat 8.0p1-15.el8_6.3, openssh-server 8.0p1-15.el8_6.3, openssh-clients 8.0p1-15.el8_6.3, +1 more
    fixed: vendor fix RHSA-2024:0429
  • Red Hat Enterprise Linux BaseOS EUS (v.8.8) openssh 8.0p1-19.el8_8.2, openssh-cavs 8.0p1-19.el8_8.2, openssh-ldap 8.0p1-19.el8_8.2, openssh-keycat 8.0p1-19.el8_8.2, openssh-server 8.0p1-19.el8_8.2, openssh-clients 8.0p1-19.el8_8.2, +1 more
    fixed: vendor fix RHSA-2024:0594
  • Red Hat Enterprise Linux BaseOS EUS (v.9.2) openssh 8.7p1-30.el9_2.3, openssh-keycat 8.7p1-30.el9_2.3, openssh-server 8.7p1-30.el9_2.3, openssh-clients 8.7p1-30.el9_2.3
    fixed: vendor fix RHSA-2024:0455
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) openssh 8.0p1-7.el8_4.2, openssh-clients 8.0p1-7.el8_4.2
    fixed: vendor fix RHSA-2026:22329
  • Red Hat RHODF 4.15 for RHEL 9 odf4/cephcsi-rhel9 v4.15.0-37, odf4/odf-cli-rhel9 v4.15.0-22, odf4/mcg-core-rhel9 v4.15.0-68, odf4/odf-console-rhel9 v4.15.0-57, odf4/mcg-rhel9-operator v4.15.0-39, odf4/ocs-rhel9-operator v4.15.0-79, +20 more
    fixed: vendor fix RHSA-2024:1383
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) openssh-askpass 8.0p1-7.el8_4.2 Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) openssh-askpass 8.0p1-7.el8_4.2 Red Hat Enterprise Linux BaseOS AUS (v.8.4) openssh-cavs 8.0p1-7.el8_4.2, openssh-ldap 8.0p1-7.el8_4.2, openssh-keycat 8.0p1-7.el8_4.2, openssh-server 8.0p1-7.el8_4.2, pam_ssh_agent_auth 0.10.3-7.7.el8_4.3 Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) openssh-cavs 8.0p1-7.el8_4.2, openssh-ldap 8.0p1-7.el8_4.2, openssh-keycat 8.0p1-7.el8_4.2, openssh-server 8.0p1-7.el8_4.2, pam_ssh_agent_auth 0.10.3-7.7.el8_4.3
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-162-05 updated cvss 6.5

Siemens SIMATIC S7-1500 CPU family

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.5
    affected: mitigation, no fix available

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-25-044-09 updated cvss 6.5

Siemens SCALANCE W700 IEEE 802.11ax

  • Siemens SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) <V3.0.0 Siemens SCALANCE WAM763-1 (6GK5763-1AL00-7DA0) <V3.0.0 Siemens SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) <V3.0.0 Siemens SCALANCE WAM763-1 (US) (6GK5763-1AL00-7DB0) <V3.0.0 Siemens SCALANCE WAM766-1 (6GK5766-1GE00-7DA0) <V3.0.0 Siemens SCALANCE WAM766-1 (ME) (6GK5766-1GE00-7DC0) <V3.0.0
    +13 more products
    Siemens SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (6GK5766-1GE00-7TA0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (ME) (6GK5766-1GE00-7TC0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (US) (6GK5766-1GE00-7TB0) <V3.0.0 Siemens SCALANCE WUB762-1 (6GK5762-1AJ00-1AA0) <V3.0.0 Siemens SCALANCE WUB762-1 iFeatures (6GK5762-1AJ00-2AA0) <V3.0.0 Siemens SCALANCE WUM763-1 (6GK5763-1AL00-3AA0) <V3.0.0 Siemens SCALANCE WUM763-1 (6GK5763-1AL00-3DA0) <V3.0.0 Siemens SCALANCE WUM763-1 (US) (6GK5763-1AL00-3AB0) <V3.0.0 Siemens SCALANCE WUM763-1 (US) (6GK5763-1AL00-3DB0) <V3.0.0 Siemens SCALANCE WUM766-1 (6GK5766-1GE00-3DA0) <V3.0.0 Siemens SCALANCE WUM766-1 (ME) (6GK5766-1GE00-3DC0) <V3.0.0 Siemens SCALANCE WUM766-1 (USA) (6GK5766-1GE00-3DB0) <V3.0.0
    affected: fixed in V3.0.0 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-23-166-11 updated cvss 6.5

Siemens SIMATIC S7-1500 TM MFP Linux Kernel

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
14 mo ago

Exploit prediction

19.75% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
julia OpenSSH_jll
<9.9.1+0
9.9.1+0

Affected products

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.