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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | libssh +2 | 0.9.4-2.el8 | RHSA-2020:4545 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libssh | 0.9.4-2.el8 | RLSA-2020:4545 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | libssh +2 | 0.9.4-2.el8 | ELSA-2020-4545 |
Advisories 23
- WID-SEC-2025-0227 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- RHSA-2020:4545 Red Hat Security Advisory: libssh security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-4219-1 libssh vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-3437-1 libssh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2038-1 libssh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2020:4545 Moderate: libssh security, bug fix, and enhancement update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2020:0130-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:3267-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0131-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2689-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10998-1 libssh-config-0.9.6-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:3307-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:3308-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:3293-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0539-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0102-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0525-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0129-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0139-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3377 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- WID-SEC-2023-1312 libssh: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 7, 2024
- WID-SEC-2023-1049 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 20, 2023
- ELSA-2020-4545 Moderate: libssh security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 10, 2020
References
- USN-4219-1 vendor-advisory
- openSUSE-SU-2019:2689 vendor-advisory
- [debian-lts-announce] 20191217 [SECURITY] [DLA 2038-1] libssh security update mailing-list
- FEDORA-2019-8b0ad69829 vendor-advisory
- FEDORA-2019-46b6bd2459 vendor-advisory
- openSUSE-SU-2020:0102 vendor-advisory
- GLSA-202003-27 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2020.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889
- https://www.libssh.org/security/advisories/CVE-2019-14889.txt
- [debian-lts-announce] 20230529 [SECURITY] [DLA 3437-1] libssh security update mailing-list