synced 2 MIN AGO
01 Record

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

MediumPUBLISHEDCNA: mitre
CNA base score6.5 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

02 Description

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

03 Exploitation and scoring

Exploitation
Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
SSVC decision
  • ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
19.75% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 97.1% of scored records. A rank, not a probability.
NVD base score
6.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-10-15.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-12-18 00:00Z2 YR AGO
Last updated
2026-10-15 00:16Z14 DAYS AGO
Reserved
2023-12-18
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Medium (CVSS 6.5)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
  • CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')Base
Data version
5.2
Document digest
0d0563e45f845850780c8b96d6b9c100800fce04df9e7fa22db8b53ab867968e

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
openbsdopensshNot specified—
redhatenterprise_linuxNot specified—
redhatopenshift_data_foundationNot specified—
redhatrhel_ausNot specified—
redhatrhel_e4sNot specified—
redhatrhel_eusNot specified—
redhatrhel_eus_long_lifeNot specified—

06 References

07 Fixed in

AlmaLinux 8

  • openssh
    Fixed in 8.0p1-19.el8_9.2
  • openssh-askpass
    Fixed in 8.0p1-19.el8_9.2
  • openssh-cavs
    Fixed in 8.0p1-19.el8_9.2
  • openssh-clients
    Fixed in 8.0p1-19.el8_9.2
  • openssh-keycat
    Fixed in 8.0p1-19.el8_9.2
  • openssh-ldap
    Fixed in 8.0p1-19.el8_9.2
  • openssh-server
    Fixed in 8.0p1-19.el8_9.2
  • pam_ssh_agent_auth
    Fixed in 0.10.3-7.19.el8_9.2

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • openssh
    Fixed in 8.7p1-34.el9_3.3
  • openssh-askpass
    Fixed in 8.7p1-34.el9_3.3
  • openssh-clients
    Fixed in 8.7p1-34.el9_3.3
  • openssh-keycat
    Fixed in 8.7p1-34.el9_3.3
  • openssh-server
    Fixed in 8.7p1-34.el9_3.3
  • pam_ssh_agent_auth
    Fixed in 0.10.4-5.34.el9_3.3

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • openssh
    Fixed in 8.0p1-19.el8_9.2
  • openssh-askpass
    Fixed in 8.0p1-19.el8_9.2
  • openssh-cavs
    Fixed in 8.0p1-19.el8_9.2
  • openssh-clients
    Fixed in 8.0p1-19.el8_9.2
  • openssh-keycat
    Fixed in 8.0p1-19.el8_9.2
  • openssh-ldap
    Fixed in 8.0p1-19.el8_9.2
  • openssh-server
    Fixed in 8.0p1-19.el8_9.2
  • pam_ssh_agent_auth
    Fixed in 0.10.3-7.19.el8_9.2

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • openssh
    Fixed in 8.7p1-34.el9_3.3
  • openssh-askpass
    Fixed in 8.7p1-34.el9_3.3
  • openssh-clients
    Fixed in 8.7p1-34.el9_3.3
  • openssh-keycat
    Fixed in 8.7p1-34.el9_3.3
  • openssh-server
    Fixed in 8.7p1-34.el9_3.3
  • pam_ssh_agent_auth
    Fixed in 0.10.4-5.34.el9_3.3

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • openssh
    Fixed in 1:9.2p1-2+deb12u2

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • openssh
    Fixed in 1:9.6p1-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • openssh
    Fixed in 1:9.6p1-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • openssh
    Fixed in 1:8.2p1-4ubuntu0.11
  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • openssh
    Fixed in 1:8.9p1-3ubuntu0.6
  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • openssh
    Fixed in 1:9.6p1-3ubuntu1
  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 25.10

  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.04 LTS

  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.10

  • openssh-ssh1
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • openssh
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • openssh
    Fixed in 1:7.2p2-4ubuntu2.10+esm6
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • openssh
    Fixed in 1:7.6p1-4ubuntu0.7+esm3
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 16.04 LTS

  • openssh
    Fixed in 1:7.2p2-4ubuntu2.fips.2.10.6
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 18.04 LTS

  • openssh
    Fixed in 1:7.9p1-10~ubuntu18.04.fips.0.9
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 20.04 LTS

  • openssh
    Fixed in 1:8.2p1-4ubuntu0.fips.0.11
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS 16.04 LTS

  • openssh
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS 18.04 LTS

  • openssh
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS 20.04 LTS

  • openssh
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.