CVE-2019-14889
published high CVSS 3.0 · 7.1libssh: unsanitized location in scp could lead to unwanted command execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | libsshAll libssh versions before 0.9.3 · All libssh versions before 0.8.8 | Affected | Not stated | redhat |
| Alpine Linux | edge | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Debian | buster | libssh | Advisory build | 0.8.7-1+deb10u2 | DLA-3437-1 |
| Oracle Linux | 8 | libsshaarch64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshaarch64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Ubuntu | bionic | libssh | Advisory build | 0.8.0~20170825.94fa1e38-1ubuntu0.5 | USN-4219-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develaarch64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| Alpine Linux | v3.10 | libssh | Fixed | 0.8.8-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.11 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.12 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.13 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.14 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.15 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.16 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.17 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.18 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.19 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.20 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.21 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.22 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.23 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.24 | libssh | Fixed | 0.9.3-r0 | Package fix record |
| Alpine Linux | v3.8 | libssh | Fixed | 0.7.6-r1 | Package fix record |
| Alpine Linux | v3.9 | libssh | Fixed | 0.7.6-r2 | Package fix record |
| Debian | jessie | libssh | Advisory build | 0.6.3-4+deb8u4 | DLA-2038-1 |
| Oracle Linux | 8 | libsshx86_64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshi686 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshppc64le | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshs390x | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshsrc | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libsshx86_64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Ubuntu | xenial | libssh | Advisory build | 0.6.3-4.3ubuntu0.5 | USN-4219-1 |
| Oracle Linux | 8 | libssh-configaarch64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Oracle Linux | 8 | libssh-configx86_64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Oracle Linux | 8 | libssh-develaarch64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Oracle Linux | 8 | libssh-develx86_64 | Advisory build | 0:0.9.4-2.el8 | ELSA-2020-4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-confignoarch | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debuginfoaarch64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debuginfoi686 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debuginfoppc64le | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debuginfos390x | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debuginfox86_64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debugsourceaarch64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debugsourcei686 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debugsourceppc64le | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debugsources390x | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-debugsourcex86_64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-develaarch64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-develi686 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-develppc64le | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-devels390x | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| Red Hat Enterprise Linux | RHEL-8 | libssh-develx86_64 | Advisory build | 0.9.4-2.el8 | RHSA-2020:4545 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develaarch64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develppc64le | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develppc64le | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devels390x | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devels390x | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develx86_64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-develx86_64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docaarch64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docaarch64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docppc64le | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docppc64le | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docs390x | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docs390x | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docx86_64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh-devel-docx86_64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4aarch64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4aarch64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4ppc64le | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4ppc64le | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4s390x | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4s390x | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4x86_64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4x86_64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4-32bits390x | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4-32bits390x | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4-32bitx86_64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP4 | libssh4-32bitx86_64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configaarch64 | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configppc64le | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configs390x | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configx86_64 | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develaarch64 | Advisory build | 0.8.7-3.3.1 | SUSE-SU-2019:3307-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develaarch64 | Advisory build | 0.8.7-3.6.1 | SUSE-SU-2020:0131-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develaarch64 | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develppc64le | Advisory build | 0.8.7-3.3.1 | SUSE-SU-2019:3307-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develppc64le | Advisory build | 0.8.7-3.6.1 | SUSE-SU-2020:0131-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develppc64le | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devels390x | Advisory build | 0.8.7-3.3.1 | SUSE-SU-2019:3307-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devels390x | Advisory build | 0.8.7-3.6.1 | SUSE-SU-2020:0131-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devels390x | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develx86_64 | Advisory build | 0.8.7-3.3.1 | SUSE-SU-2019:3307-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develx86_64 | Advisory build | 0.8.7-3.6.1 | SUSE-SU-2020:0131-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develx86_64 | Advisory build | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docaarch64 | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docaarch64 | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docppc64le | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docppc64le | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docs390x | Advisory build | 0.6.3-12.12.1 | SUSE-SU-2020:0139-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docs390x | Advisory build | 0.6.3-12.9.1 | SUSE-SU-2019:3308-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | libssh | All libssh versions before 0.9.3 (affected)All libssh versions before 0.8.8 (affected) | redhat · cna |
Weaknesses
1- CWE-78
References
11- openSUSE-SU-2019:2689 http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00033.html
- openSUSE-SU-2020:0102 http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00047.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889
- [debian-lts-announce] 20191217 [SECURITY] [DLA 2038-1] libssh security update https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html
- [debian-lts-announce] 20230529 [SECURITY] [DLA 3437-1] libssh security update https://lists.debian.org/debian-lts-announce/2023/05/msg00029.html
- FEDORA-2019-8b0ad69829 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/
- FEDORA-2019-46b6bd2459 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EV2ONSPDJCTDVORCB4UGRQUZQQ46JHRN/
- GLSA-202003-27 https://security.gentoo.org/glsa/202003-27
- USN-4219-1 https://usn.ubuntu.com/4219-1/
- https://www.libssh.org/security/advisories/CVE-2019-14889.txt
- https://www.oracle.com/security-alerts/cpuapr2020.html
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 244fb302450813db3a55618f752f34a22cee2570149a2cefbc9e72524a4e5dbe
- Ingested
- 23 Sep 2026, 07:46:03 UTC
- Source record
- Official CVE record