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

High Nessus Plugin ID 133432

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.3

Type: local

Published: 2020/02/03

Updated: 2020/05/15

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 9.3

Temporal Score: 6.9

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

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 8

Temporal Score: 7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/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: 2020/02/02

Vulnerability Publication Date: 2019/11/14

Reference Information

CVE: CVE-2019-14889

IAVA: 2020-A-0203