FreeBSD : libssh -- Unsanitized location in scp could lead to unwanted command execution (1e7fa41b-f6ca-4fe8-bd46-0e176b42b14f)

high Nessus Plugin ID 133432

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The libssh team reports :

In an environment where a user is only allowed to copy files and not to execute applications, it would be possible to pass a location which contains commands to be executed in additon.

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.

Solution

Update the affected packages.

See Also

https://www.libssh.org/security/advisories/CVE-2019-14889.txt

http://www.nessus.org/u?7528d545

Plugin Details

Severity: High

ID: 133432

File Name: freebsd_pkg_1e7fa41bf6ca4fe8bd460e176b42b14f.nasl

Version: 1.4

Type: local

Published: 2/3/2020

Updated: 2/3/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 6.9

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2019-14889

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:libssh, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 2/2/2020

Vulnerability Publication Date: 11/14/2019

Reference Information

CVE: CVE-2019-14889

IAVA: 2020-A-0203