libssh: Arbitrary command execution — GLSA 202003-27

A vulnerability in libssh could allow a remote attacker to execute arbitrary commands.

Affected packages

net-libs/libssh on all architectures
Affected versions < 0.9.3
Unaffected versions >= 0.9.3

Background

libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side.

Description

It was discovered that libssh incorrectly handled certain scp commands.

Impact

A remote attacker could trick a victim into using a specially crafted scp command, possibly resulting in the execution of arbitrary commands on the server.

Workaround

There is no known workaround at this time.

Resolution

All libssh users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=net-libs/libssh-0.9.3"
 

References

Release date
March 15, 2020

Latest revision
March 15, 2020: 1

Severity
normal

Exploitable
remote

Bugzilla entries