CVE-2019-14889 json
A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8.
published 6y ago modified 4mo ago also EUVD-2019-5997
- cvss
- 7.1
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libssh libssh 0.8.8, 0.9.3
- libssh Debian 14, Debian 13, Debian 12 0.9.3-1
debian advisories DEBIAN-CVE-2019-14889
- libssh Ubuntu 16.04 LTS 0.6.3-4.3ubuntu0.5
- libssh Ubuntu 18.04 LTS 0.8.0~20170825.94fa1e38-1ubuntu0.5
ubuntu advisories UBUNTU-CVE-2019-14889
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libssh RHEL 8 0.9.4-2.el8
- libssh-config RHEL 8 0.9.4-2.el8
red hat advisories RHSA-2020:4545
- libssh SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 0.9.8-3.12.2
- libssh SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +6 more 0.9.8-150200.13.3.1
- libssh SLES for SAP 12 SP4, SLES 12 SP4, SLED 12 SP4 +2 more 0.6.3-12.12.1
- libssh SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 0.8.7-3.6.1
- libssh SLES for SAP 15, SLES 15-LTSS, SLE Module for Basesystem 15 +2 more 0.7.5-6.9.2
- libssh SLE Module for Basesystem 15 SP1 0.8.7-10.9.1
- libssh SLES for SAP 12 SP4, SLES 12 SP4, SLED 12 SP4 +2 more 0.6.3-12.9.1
- libssh SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 0.8.7-3.3.1
suse advisories SUSE-SU-2024:0539-1SUSE-SU-2024:0525-1SUSE-SU-2020:0139-1SUSE-SU-2020:0131-1SUSE-SU-2020:0130-1SUSE-SU-2020:0129-1
- libssh openSUSE Tumbleweed 0.9.6-1.2
- libssh openSUSE Leap 15.1 0.8.7-lp151.2.9.1
- libssh openSUSE Leap 15.1 0.8.7-lp151.2.6.1
opensuse advisories openSUSE-SU-2024:10998-1openSUSE-SU-2020:0102-1openSUSE-SU-2019:2689-1
- libssh Rocky Linux 8 0.9.4-2.el8
rocky linux advisories RLSA-2020:4545
- libssh Alpine 3.10 0.8.8-r0
- libssh Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 0.9.3-r0
- libssh Alpine 3.8 0.7.6-r1
- libssh Alpine 3.9 0.7.6-r2
alpine advisories ALPINE-CVE-2019-14889
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2019-14889 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-14889 updated cvss 7.1
libssh: unsanitized location in scp could lead to unwanted command execution
-
Red Hat Enterprise Linux AppStream (v. 8) libssh-devel 0.9.4-2.el8, libssh-debuginfo 0.9.4-2.el8, libssh-debugsource 0.9.4-2.el8 Red Hat Enterprise Linux BaseOS (v. 8) libssh 0.9.4-2.el8, libssh-config 0.9.4-2.el8fixed: vendor fix RHSA-2020:4545
-
Red Hat Enterprise Linux 6 libssh2 Red Hat Enterprise Linux 7 libssh2 Red Hat Enterprise Linux 8 libssh2 Red Hat Virtualization 4 libsshnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.17% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.1 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected products
- Red Hat libssh
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2019-14889
issue-tracking, patch, third-party-advisory
-
usn.ubuntu.com
/4219-1/
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-12/msg00033.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EV2ONSPDJCTDVORCB4UGRQUZQQ46JHRN/
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-01/msg00047.html
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/202003-27
vendor-advisory, third-party-advisory
-
libssh.org
/security/advisories/CVE-2019-14889.txt
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/12/msg00020.html
mailing-list, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2020.html
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/05/msg00029.html
mailing-list
Sources
- CVE List CVE-2019-14889
- NVD CVE-2019-14889
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.