Skip to content
OpenAdvisories
Medium · 4.8 CVE-2023-6004 EUVD-2023-58271GHSA-f35j-mfvw-p857

Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname

Published Jan 3, 2024 · Updated Nov 6, 2026 · Assigned by redhat

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

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 7 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh 0.10.6-1 —
Debian 13 libssh 0.10.6-1 —
Debian 12 libssh 0.10.6-0+deb12u1 DSA-5591-1
Debian 11 libssh 0.9.8-0+deb11u1 DSA-5591-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libssh 0.9.6-2ubuntu0.22.04.3 USN-6592-1
Ubuntu 20.04 LTS libssh 0.9.3-2ubuntu2.5 USN-6592-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libssh 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 USN-6592-2
Ubuntu Pro 16.04 LTS libssh 0.6.3-4.3ubuntu0.6+esm1 USN-6592-2
ReleasePackageFixed inAdvisory
RHEL 9 libssh +2 0.10.4-13.el9 RHSA-2024:2504
RHEL 8 libssh +2 0.9.6-14.el8 RHSA-2024:3233

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libssh +2 0.10.4-13.el9 ALSA-2024:2504
AlmaLinux 8 libssh +2 0.9.6-14.el8 ALSA-2024:3233

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libssh 0.10.4-13.el9 RLSA-2024:2504
Rocky Linux 8 libssh 0.9.6-14.el8 RLSA-2024:3233
ReleasePackageFixed inAdvisory
SLES 15 SP5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES 12 SP5 libssh 0.9.8-3.12.2 SUSE-SU-2024:0539-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES for SAP 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES for SAP 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES for SAP 12 SP5 libssh 0.9.8-3.12.2 SUSE-SU-2024:0539-1
SLE Real Time 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE Micro 5.1 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE HPC 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE HPC 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE HPC 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SUSE Manager Server 4.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SUSE Manager Proxy 4.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SUSE Enterprise Storage 7.1 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.10.6-1.1 openSUSE-SU-2024:13638-1
openSUSE Leap 15.5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
openSUSE Leap Micro 5.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh 0.10.6-r0 —
Alpine v3.23 libssh 0.10.6-r0 —
Alpine v3.22 libssh 0.10.6-r0 —
Alpine v3.21 libssh 0.10.6-r0 —
Alpine v3.20 libssh 0.10.6-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libssh 0.10.6-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libssh 0.10.6-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libssh +2 0.10.4-13.el9 ELSA-2024-2504
Oracle Linux 8 libssh +2 0.9.6-14.el8 ELSA-2024-3233

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libssh 0.10.6-r0 —

Advisories 19

References