Bug 1772523 (CVE-2019-14889) - CVE-2019-14889 libssh: unsanitized location in scp could lead to unwanted command execution
Summary: CVE-2019-14889 libssh: unsanitized location in scp could lead to unwanted com...
Alias: CVE-2019-14889
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1781780 1781781 1781782
Blocks: 1772524
TreeView+ depends on / blocked
Reported: 2019-11-14 14:50 UTC by Marian Rehak
Modified: 2023-12-15 16:56 UTC (History)
17 users (show)

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.
Clone Of:
Last Closed: 2020-11-04 02:23:16 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4545 0 None None None 2020-11-04 01:52:01 UTC

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):


Note You need to log in before you can comment on or make changes to this bug.