CVE-2023-6004 Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
MediumCVSS 4.8
EPSS 0.45%
- Published
- Updated
- Exploit status
- No public exploit known
Description
A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libssh(Debian:12) | < 0.10.6-0+deb12u1 | 0.10.6-0+deb12u1 |
| debian/libssh(Debian:12) | = 0.10.5-2 | No fix listed |
| debian/libssh(Debian:12) | = 0.10.5-3 | No fix listed |
| debian/libssh(Debian:12) | = 0.10.5-3+hurd.1 | No fix listed |
| debian/libssh(Debian:13) | < 0.10.6-1 | 0.10.6-1 |
| debian/libssh(Debian:14) | < 0.10.6-1 | 0.10.6-1 |
| redhat enterprise linux | < 0:0.9.6-14.el8 | 0:0.9.6-14.el8 |
| redhat enterprise linux | < 0:0.10.4-13.el9 | 0:0.10.4-13.el9 |
| redhat rhel els | = 7 | No fix listed |
| ubuntu/libssh(Ubuntu:22.04) | < 0.9.6-2ubuntu0.22.04.3 | 0.9.6-2ubuntu0.22.04.3 |
| libssh | >= 0.8.0, < 0.9.8 | 0.9.8 |
| libssh | >= 0.10.0, < 0.10.6 | 0.10.6 |
| fedoraproject fedora | = 38 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| alpine/libssh(Alpine:v3.19) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
| alpine/libssh(Alpine:v3.20) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
| alpine/libssh(Alpine:v3.21) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
| alpine/libssh(Alpine:v3.22) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
| alpine/libssh(Alpine:v3.23) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
| alpine/libssh(Alpine:v3.24) | >= 0.10.0, < 0.10.6-r0 | 0.10.6-r0 |
References
- Debian Security Tracker CVE-2023-6004 vendor-advisory
- RHSA-2024:2504 vendor-advisory
- RHSA-2024:3233 vendor-advisory
- access.redhat.com vdb-entry vendor-advisory
- RHBZ#2251110 issue-tracking
- www.libssh.org mailing-list
- lists.fedoraproject.org
- security.netapp.com
- lists.fedoraproject.org
- Ubuntu CVE tracker vendor-advisory
- USN-6592-1 vendor-advisory
- USN-6592-2 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking