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

EcosystemPackageFixed inAdvisory
AlmaLinux:8libssh0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh0.10.4-13.el9ALSA-2024:2504
AlmaLinux:8libssh-config0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh-config0.10.4-13.el9ALSA-2024:2504
AlmaLinux:8libssh-devel0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh-devel0.10.4-13.el9ALSA-2024:2504
Alpine:v3.20libssh0.10.6-r0ALPINE-CVE-2023-6004
Alpine:v3.21libssh0.10.6-r0ALPINE-CVE-2023-6004
Alpine:v3.22libssh0.10.6-r0ALPINE-CVE-2023-6004
Alpine:v3.23libssh0.10.6-r0ALPINE-CVE-2023-6004
Alpine:v3.24libssh0.10.6-r0ALPINE-CVE-2023-6004
Debian:12libssh0.10.6-0+deb12u1DEBIAN-CVE-2023-6004
Debian:12libssh0.10.6-0+deb12u1DSA-5591-1
Debian:13libssh0.10.6-1DEBIAN-CVE-2023-6004
Debian:14libssh0.10.6-1DEBIAN-CVE-2023-6004
Rocky Linux:8libssh0:0.9.6-14.el8RLSA-2024:3233
Rocky Linux:9libssh0:0.10.4-13.el9RLSA-2024:2504
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3USN-6592-1
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3UBUNTU-CVE-2023-6004

Affected products (as reported)

Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

References