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.0: 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/E:P/U:Green
CVE-ID: CVE-2019-13115
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: libssh2.org
Affected software:
libssh2

Detailed vulnerability description

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.



How to mitigate CVE-2019-13115

Install updates from vendor's website.

Sources