CVEfocus › CVE database › CVE-2019-14889

CVE-2019-14889

CVSS 7.1 HighEPSS 3.2% (higher than 88% of CVEs)Published 2019-12-10Updated 2024-08-05Assigner: redhat

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.

CWE-78

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

26Fixed
1Fix pending
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04libsshFixed0.8.0~20170825.94fa1e38-1ubuntu0.5UBUNTU-CVE-2019-14889
Ubuntu 16.04libsshFixed0.6.3-4.3ubuntu0.5UBUNTU-CVE-2019-14889
Ubuntu 14.04libsshFix pending
Debian 14libsshFixed0.9.3-1DEBIAN-CVE-2019-14889
Debian 13libsshFixed0.9.3-1DEBIAN-CVE-2019-14889
Debian 12libsshFixed0.9.3-1DEBIAN-CVE-2019-14889
Red Hat Enterprise Linux 8libsshFixed0:0.9.4-2.el8RHSA-2020:4545
Red Hat Enterprise Linux 8libssh-configFixed0:0.9.4-2.el8RHSA-2020:4545
Red Hat Enterprise Linux 8libssh-develFixed0:0.9.4-2.el8RHSA-2020:4545
Red Hat Enterprise Linux 8libssh2Not affected
Red Hat Enterprise Linux 8libssh2-develNot affected
Red Hat Enterprise Linux 8libssh2-docsNot affected
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 7libssh2-develNot affected
Red Hat Enterprise Linux 7libssh2-docsNot affected
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 6libssh2-develNot affected
Red Hat Enterprise Linux 6libssh2-docsNot affected
Rocky Linux 8libsshFixed0:0.9.4-2.el8RLSA-2020:4545
Alpine Linux 3.24libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.23libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.22libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.21libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.20libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.19libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.18libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.17libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.16libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.15libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.14libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.13libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.12libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.11libsshFixed0.9.3-r0ALPINE-CVE-2019-14889
Alpine Linux 3.10libsshFixed0.8.8-r0ALPINE-CVE-2019-14889
Alpine Linux 3.9libsshFixed0.7.6-r2ALPINE-CVE-2019-14889
Alpine Linux 3.8libsshFixed0.7.6-r1ALPINE-CVE-2019-14889

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.