cve.bz

CVE-2019-14889 OS Command Injection

8.8 highEPSS 3.2%Fix available

High (8.8). EPSS 3.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-14889 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-14889?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-14889?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-14889 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libssh:libsshbefore 0.8.8
libssh:libsshfrom 0.9.0 before 0.9.3
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.04
canonical:ubuntu_linux19.10
opensuse:leap15.1
fedoraproject:fedora30
fedoraproject:fedora31
debian:debian_linux8.0
oracle:mysql_workbenchthrough 8.0.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libssh0.6.3-4+deb8u4DLA-2038-1
Debian10libssh0.8.7-1+deb10u2DLA-3437-1
Debian12, 13, 14libssh0.9.3-1DEBIAN-CVE-2019-14889
Ubuntu16.04:LTSlibssh0.6.3-4.3ubuntu0.5UBUNTU-CVE-2019-14889 USN-4219-1
Ubuntu18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.5UBUNTU-CVE-2019-14889 USN-4219-1
Red Hatenterprise_linux:8::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.9.4-2.el8RHSA-2020:4545
Red Hatenterprise_linux:8::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.9.4-2.el8RHSA-2020:4545
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morelibssh0.9.8-150200.13.3.1SUSE-SU-2024:0525-1
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4 and 2 morelibssh0.6.3-12.12.1SUSE-SU-2020:0139-1
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4 and 2 morelibssh0.6.3-12.9.1SUSE-SU-2019:3308-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 and 2 morelibssh0.7.5-6.9.2SUSE-SU-2020:0130-1
SUSELinux Enterprise Module for Basesystem 15libssh0.7.5-6.6.1SUSE-SU-2019:3293-1
SUSELinux Enterprise Module for Basesystem 15 SP1libssh0.8.7-10.6.2SUSE-SU-2019:3267-1
SUSELinux Enterprise Module for Basesystem 15 SP1libssh0.8.7-10.9.1SUSE-SU-2020:0129-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.8.7-3.3.1SUSE-SU-2019:3307-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.8.7-3.6.1SUSE-SU-2020:0131-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.9.8-3.12.2SUSE-SU-2024:0539-1
openSUSELeap 15.1libssh0.8.7-lp151.2.6.1openSUSE-SU-2019:2689-1
openSUSELeap 15.1libssh0.8.7-lp151.2.9.1openSUSE-SU-2020:0102-1
openSUSETumbleweedlibssh0.9.6-1.2openSUSE-SU-2024:10998-1
Rocky Linux8libssh0:0.9.4-2.el8RLSA-2020:4545
Alpinev3.8libssh0.7.6-r1ALPINE-CVE-2019-14889
Alpinev3.9libssh0.7.6-r2ALPINE-CVE-2019-14889
Alpinev3.10libssh0.8.8-r0ALPINE-CVE-2019-14889
Alpinev3.11, v3.12, v3.13 and 11 morelibssh0.9.3-r0ALPINE-CVE-2019-14889

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Virtualization only uses libssh for client-side, not server-side where this vulnerability is present.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libssh-0:0.9.4-2.el8Fixed 2020-11-04RHSA-2020:4545
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 8libssh2Not affected
Red Hat Virtualization 4libsshNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-14889.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON