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

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 19.8%, higher than 97% of CVEs (2026-12-02)
- Published: 2023-12-18T00:00:00.000Z
- Modified: 2026-10-15T01:17:12.563Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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 example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd openssh: before 9.6
- debian debian_linux: 10.0; 11.0; 12.0

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://www.openssh.com/txt/release-9.6> (release-notes)
- <https://www.openwall.com/lists/oss-security/2023/12/18/2> (mailing-list, release-notes)
- <https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a> (patch)
- <https://www.debian.org/security/2023/dsa-5586> (third-party-advisory, vendor-advisory)
- <https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00017.html> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2023/12/26/4> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202312-17> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240105-0005/>
- <https://support.apple.com/kb/HT214084>
- <http://seclists.org/fulldisclosure/2024/Mar/21> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2025/10/07/1>
- <http://www.openwall.com/lists/oss-security/2025/10/12/1>
- <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-769027.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Sources

- CVE List: [CVE-2023-51385](https://www.cve.org/CVERecord?id=CVE-2023-51385), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2023-51385](https://nvd.nist.gov/vuln/detail/CVE-2023-51385), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2023-51385 · Whole record: https://cve.day/CVE-2023-51385.json · Rebuilt by cve.day 2026-11-25T22:58:31.489Z
