OS Command Injection Affecting libssh package, versions <0.8.0~20170825.94fa1e38-1ubuntu0.5


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
3.17% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-LIBSSH-537087
  • published10 Dec 2019
  • disclosed10 Dec 2019

Introduced: 10 Dec 2019

CVE-2019-14889  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 libssh to version 0.8.0~20170825.94fa1e38-1ubuntu0.5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libssh package and not the libssh package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1