Skip to content
Fencer Vulns
high 7.1

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 2019-12-10 6 y ago modified 2026-06-17 4 mo 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

Vendor 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.el8
    fixed: 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 libssh
    not 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-08).

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

Sources

Fencer Vulns 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.