Integer overflow in libssh2 - CVE-2019-13115

 

Integer overflow in libssh2 - CVE-2019-13115

Published: July 19, 2019 / Updated: September 1, 2020


Vulnerability identifier: #VU19258
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-13115
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: Public exploit is available

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

libssh2
Traffix SDC
libssh2 (Alpine package)
libssh2
IBM Tivoli Storage Manager
SmartFabric OS10
Enterprise SONiC
Fedora

How to mitigate CVE-2019-13115

Install updates from vendor's website.

libssh2 - update to 1.9.0
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

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins