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.
Affected products
openbsd: openssh; debian: debian linux
References10
- github.com/openssh/openssh-portable/commit/7ef3787c84b6b5245012… Patch
- github.com/openssh/openssh-portable/commit/7ef3787c84b6b5245012… Patch
- seclists.org/fulldisclosure/2024/Mar/21
- www.openwall.com/lists/oss-security/2023/12/26/4 Mailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2023/12/msg00017.html Mailing ListThird Party Advisory
- security.gentoo.org/glsa/202312-17 Third Party Advisory
- security.netapp.com/advisory/ntap-20240105-0005/
- support.apple.com/kb/HT214084
- vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-co… Third Party Advisory
- www.debian.org/security/2023/dsa-5586 Third Party Advisory
Metrics
- CVSS 3.1
-
6.5
MEDIUM
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - EPSS — exploit probability
- 20% percentile: 97 · as of 5 November 2026
- CWE
- CWE-78
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.