Integer overflow in libssh2 - CVE-2019-13115
Published: July 19, 2019 / Updated: September 1, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code or cause a denial of service (DoS) condition on a targeted system.
The vulnerability exists due to integer overflow in the "kex_method_diffie_hellman_group_exchange_sha256_key_exchange" function in the "kex.c" file. A remote attacker can trick a victim to connect to an attacker-controlled Secure Shell (SSH) server, which would allow the attacker to send packets that submit malicious input to the targeted system, trigger integer overflow leading to an out-of-bounds write condition and execute arbitrary code or cause a DoS condition.
Affected software
Traffix SDC
libssh2 (Alpine package)
libssh2
IBM Tivoli Storage Manager
SmartFabric OS10
Enterprise SONiC
Fedora
How to mitigate CVE-2019-13115
libssh2 (Alpine package) - update to 1.9.0-r0
SmartFabric OS10 - update to 10.5.4.11
libssh2 - addressed in versions 1.9.0-1.fc29, 1.9.0-1.fc30
Enterprise SONiC - update to 4.1.2