CVE-2019-14889 Detail

Current 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.

Source:  MITRE
View Analysis Description

Analysis 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.

Source:  MITRE

Severity

CVSS 3.x Severity and Metrics:

CVSS 2.0 Severity and Metrics:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

Weakness Enumeration

CWE-ID CWE Name Source
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (‘Injection’) NIST  
CWE-77 Improper Neutralization of Special Elements used in a Command (‘Command Injection’) Red Hat, Inc.  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )

 cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
0.8.8
 cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
0.9.0
Up to (excluding)
0.9.3

Configuration 2 ( hide )

Change History

4 change records found – show changes

Initial Analysis12/23/2019 12:25:06 PM

Action Type Old Value New Value
Added CPE Configuration
OR
     *cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* versions up to (excluding) 0.8.8
     *cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* versions from (including) 0.9.0 up to (excluding) 0.9.3
Added CPE Configuration
OR
     *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
     *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
     *cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*
     *cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
Added CVSS V2
NIST (AV:N/AC:M/Au:N/C:C/I:C/A:C)
Added CVSS V2 Metadata
Victim must voluntarily interact with attack mechanism
Added CVSS V3.1
NIST AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Added CWE
NIST CWE-74
Changed Reference Type
http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00033.html No Types Assigned
http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00033.html Third Party Advisory
Changed Reference Type
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889 No Types Assigned
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889 Issue Tracking, Third Party Advisory
Changed Reference Type
https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html Third Party Advisory
Changed Reference Type
https://lists.fedoraproject.org/archives/list/[email protected]/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected]/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/ Third Party Advisory
Changed Reference Type
https://usn.ubuntu.com/4219-1/ No Types Assigned
https://usn.ubuntu.com/4219-1/ Third Party Advisory
Changed Reference Type
https://www.libssh.org/security/advisories/CVE-2019-14889.txt No Types Assigned
https://www.libssh.org/security/advisories/CVE-2019-14889.txt Vendor Advisory

CVE Modified by MITRE12/17/2019 11:15:14 PM

Action Type Old Value New Value
Added Reference
https://lists.fedoraproject.org/archives/list/[email protected]/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/ [No Types Assigned]

CVE Modified by MITRE12/17/2019 10:15:12 AM

Action Type Old Value New Value
Added Reference
https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html [No Types Assigned]

CVE Modified by MITRE12/16/2019 8:15:13 PM

Action Type Old Value New Value
Added Reference
http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00033.html [No Types Assigned]

Quick Info

CVE Dictionary Entry:
CVE-2019-14889
NVD Published Date:
12/10/2019
NVD Last Modified:
12/23/2019