Bug 1772523 (CVE-2019-14889)

Summary: CVE-2019-14889 libssh: unsanitized location in scp could lead to unwanted command execution
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ansasaki, asn, dblechte, dfediuck, eedri, jfch, jlyle, kdudka, mgoldboi, michal.skrivanek, negativo17, rdieter, redhat-bugzilla, sbonazzo, security-response-team, sherold, yturgema
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: libssh 0.9.3, libssh 0.8.8 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found with the libssh API function ssh_scp_new(). A user able to connect to a server using SCP could execute arbitrary command using a user-provided path, leading to a compromise of the remote target.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:23:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1781780, 1781781, 1781782    
Bug Blocks: 1772524    

Description Marian Rehak 2019-11-14 14:50:47 UTC
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 ssh_scp_new(), it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.

Comment 1 Huzaifa S. Sidhpurwala 2019-11-24 12:58:21 UTC
Upstream bug: https://bugs.libssh.org/T181

Comment 2 Huzaifa S. Sidhpurwala 2019-12-10 15:11:32 UTC

Name: libssh project
Upstream: Cure53

Comment 3 Huzaifa S. Sidhpurwala 2019-12-10 15:11:36 UTC
External References:


Comment 4 Huzaifa S. Sidhpurwala 2019-12-10 15:12:31 UTC
Created libssh tracking bugs for this issue:

Affects: epel-all [bug 1781781]
Affects: fedora-all [bug 1781780]

Comment 7 Doran Moppert 2019-12-17 03:10:11 UTC

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

Comment 8 Andreas Schneider 2019-12-17 08:10:13 UTC
The bug is a client side but, however I'm sure they don't use scp ;-)

Comment 9 errata-xmlrpc 2020-11-04 01:52:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4545 https://access.redhat.com/errata/RHSA-2020:4545

Comment 10 Product Security DevOps Team 2020-11-04 02:23:16 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):