Vulnerability · Published Jan 3, 2024 · Assigned by redhat
CVE-2023-6004Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
Medium 4.8
In plain English
A medium-severity injection in Red Hat Enterprise Linux 7 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.4%top 60.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libssh | 0.9.6-14.el8 | ALSA-2024:3233 |
| AlmaLinux:9 | libssh | 0.10.4-13.el9 | ALSA-2024:2504 |
| AlmaLinux:8 | libssh-config | 0.9.6-14.el8 | ALSA-2024:3233 |
| AlmaLinux:9 | libssh-config | 0.10.4-13.el9 | ALSA-2024:2504 |
| AlmaLinux:8 | libssh-devel | 0.9.6-14.el8 | ALSA-2024:3233 |
| AlmaLinux:9 | libssh-devel | 0.10.4-13.el9 | ALSA-2024:2504 |
| Alpine:v3.20 | libssh | 0.10.6-r0 | ALPINE-CVE-2023-6004 |
| Alpine:v3.21 | libssh | 0.10.6-r0 | ALPINE-CVE-2023-6004 |
| Alpine:v3.22 | libssh | 0.10.6-r0 | ALPINE-CVE-2023-6004 |
| Alpine:v3.23 | libssh | 0.10.6-r0 | ALPINE-CVE-2023-6004 |
| Alpine:v3.24 | libssh | 0.10.6-r0 | ALPINE-CVE-2023-6004 |
| Debian:12 | libssh | 0.10.6-0+deb12u1 | DEBIAN-CVE-2023-6004 |
| Debian:12 | libssh | 0.10.6-0+deb12u1 | DSA-5591-1 |
| Debian:13 | libssh | 0.10.6-1 | DEBIAN-CVE-2023-6004 |
| Debian:14 | libssh | 0.10.6-1 | DEBIAN-CVE-2023-6004 |
| Rocky Linux:8 | libssh | 0:0.9.6-14.el8 | RLSA-2024:3233 |
| Rocky Linux:9 | libssh | 0:0.10.4-13.el9 | RLSA-2024:2504 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.3 | USN-6592-1 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.3 | UBUNTU-CVE-2023-6004 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
References
- RHSA-2024:2504 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:3233 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-6004 vdb-entry, x_refsource_REDHAT
- RHBZ#2251110 issue-tracking, x_refsource_REDHAT
- https://www.libssh.org/security/advisories/CVE-2023-6004.txt
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/ x_transferred
- https://security.netapp.com/advisory/ntap-20240223-0004/ x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/