CVE-2019-14889

libssh: unsanitized location in scp could lead to unwanted command execution

Published Dec 10, 2019 CVSS 3.1 · 8.8 High EPSS 3.2% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2038-1 libssh security update
Debian DLA Debian DLA DLA-3437-1 libssh security update
EUVD EUVD EUVD-2019-5997 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.
Ubuntu USN Ubuntu USN USN-4219-1 libssh vulnerability
History

No history.

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 5, 2024, 12:26 AM
Reserved
Aug 10, 2019, 12:00 AM
Status
Modified
Published
Dec 10, 2019, 11:15 PM
Modified
Jun 17, 2026, 2:19 AM
Severity
Low
Public date
Dec 5, 2019, 12:00 AM