Skip to content
OpenAdvisories
High · 7.1 CVE-2019-14889 EUVD-2019-5997GHSA-mrxf-x73j-79wm

A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects …

Published Dec 10, 2019 · Updated Aug 5, 2024 · Assigned by redhat

Description

A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects to a server, the scp command, which includes a user-provided path, is executed on the server-side. In case the library is used in a way where users can influence the third parameter of the function, it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.

Affected products

VendorProductAffectedFixed
Red Hat libssh All libssh versions before 0.9.3, All libssh versions before 0.8.8 —

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.9.3-1 —
Debian 13 libssh 0.9.3-1 —
Debian 12 libssh 0.9.3-1 —
Debian 10 libssh 0.8.7-1+deb10u2 DLA-3437-1
Debian 8 libssh 0.6.3-4+deb8u4 DLA-2038-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libssh 0.8.0~20170825.94fa1e38-1ubuntu0.5 USN-4219-1
Ubuntu 16.04 LTS libssh 0.6.3-4.3ubuntu0.5 USN-4219-1
ReleasePackageFixed inAdvisory
RHEL 8 libssh +2 0.9.4-2.el8 RHSA-2020:4545

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libssh 0.9.4-2.el8 RLSA-2020:4545
ReleasePackageFixed inAdvisory
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 15 SP1 libssh 0.8.7-10.6.2 SUSE-SU-2020:0129-1, SUSE-SU-2019:3267-1
SLES 15 libssh 0.7.5-6.6.1 SUSE-SU-2020:0130-1, SUSE-SU-2019:3293-1
SLES 12 SP5 libssh 0.6.3-12.9.1 SUSE-SU-2024:0539-1, SUSE-SU-2020:0139-1, SUSE-SU-2020:0131-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 libssh 0.6.3-12.9.1 SUSE-SU-2020:0139-1, SUSE-SU-2019:3308-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 15 libssh 0.7.5-6.9.2 SUSE-SU-2020:0130-1
SLES for SAP 12 SP5 libssh 0.8.7-3.3.1 SUSE-SU-2024:0539-1, SUSE-SU-2020:0131-1, SUSE-SU-2019:3307-1
SLES for SAP 12 SP4 libssh 0.6.3-12.9.1 SUSE-SU-2020:0139-1, SUSE-SU-2019:3308-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 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
SLE HPC 15 libssh 0.7.5-6.9.2 SUSE-SU-2020:0130-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.9.6-1.2 openSUSE-SU-2024:10998-1
openSUSE Leap 15.1 libssh 0.8.7-lp151.2.6.1 openSUSE-SU-2020:0102-1, openSUSE-SU-2019:2689-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh 0.9.3-r0 —
Alpine v3.23 libssh 0.9.3-r0 —
Alpine v3.22 libssh 0.9.3-r0 —
Alpine v3.21 libssh 0.9.3-r0 —
Alpine v3.20 libssh 0.9.3-r0 —
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libssh 0.9.3-r0 —
Alpine v3.18 libssh 0.9.3-r0 —
Alpine v3.17 libssh 0.9.3-r0 —
Alpine v3.16 libssh 0.9.3-r0 —
Alpine v3.15 libssh 0.9.3-r0 —
Alpine v3.14 libssh 0.9.3-r0 —
Alpine v3.13 libssh 0.9.3-r0 —
Alpine v3.12 libssh 0.9.3-r0 —
Alpine v3.11 libssh 0.9.3-r0 —
Alpine v3.10 libssh 0.8.8-r0 —
Alpine v3.9 libssh 0.7.6-r2 —
Alpine v3.8 libssh 0.7.6-r1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libssh +2 0.9.4-2.el8 ELSA-2020-4545

Advisories 23

References