
CVE catalog
CVE-2023-6004
libssh: CVE-2023-6004
- Severity
- Medium · CVSS 4.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.45% · Oct 25, 2026
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. libssh: ProxyCommand/ProxyJump features allow injection of malicious code through hostname Despite the potential severity of this issue, the requirement for user interaction to exploit the vulnerability has led to a low severity rating. As a precautionary measure, users are advised to sanitize hostname inputs as a mitigation strategy. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libssh | sid | 0.12.2-1 | fixed |
| Debian | libssh | forky | 0.12.2-1 | fixed |
| Debian | libssh | trixie | 0.11.5-0+deb13u1 | fixed |
| Debian | libssh | trixie-security | 0.11.5-0+deb13u1 | fixed |
| Debian | libssh | bookworm | 0.10.6-0+deb12u2 | fixed |
| Debian | libssh | bookworm-security | 0.10.6-0+deb12u3 | fixed |
| Ubuntu | libssh | pro | 0.7.5-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1build1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.2 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.5 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.6 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | fixed |
| Ubuntu | libssh | pro | 0.7.5-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1build1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.2 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.5 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.6 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | fixed |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu5 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.3 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.5 | fixed |
| Ubuntu | libssh | 22.04 | 0.9.6-1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-1build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.3 | fixed |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu5 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.3 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.5 | fixed |
| Ubuntu | libssh | 22.04 | 0.9.6-1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-1build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libssh | source | sid | 0.10.6-1 | not yet assigned | Not reported | [1059061] |
| Debian | libssh | source | forky | 0.10.6-1 | not yet assigned | Not reported | [1059061] |
| Debian | libssh | source | trixie | 0.10.6-1 | not yet assigned | Not reported | [1059061] |
| Debian | libssh | source | bookworm | 0.10.6-0+deb12u1 | not yet assigned | Not reported | [1059061] |
| Ubuntu | libssh | deb | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | Not reported | USN-6592-2 | Not reported |
| Ubuntu | libssh | deb | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | Not reported | UBUNTU-CVE-2023-6004 | Not reported |
| Ubuntu | libssh | deb | 20.04 | 0.9.3-2ubuntu2.5 | Not reported | UBUNTU-CVE-2023-6004 | Not reported |
| Ubuntu | libssh | deb | 22.04 | 0.9.6-2ubuntu0.22.04.3 | Not reported | UBUNTU-CVE-2023-6004 | Not reported |
| Ubuntu | libssh | deb | 20.04 | 0.9.3-2ubuntu2.5 | Not reported | USN-6592-1 | Not reported |
| Ubuntu | libssh | deb | 22.04 | 0.9.6-2ubuntu0.22.04.3 | Not reported | USN-6592-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://access.redhat.com/errata/RHSA-2024:2504]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_3233.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-6004]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-6004]
- [https://osv.dev/vulnerability/USN-6592-1]
- [https://osv.dev/vulnerability/USN-6592-2]
- [https://security-tracker.debian.org/tracker/CVE-2023-6004]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1307.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]