Skip to content
OpenAdvisories
Unscored Public exploit CVE-2019-13115 EUVD-2019-4656GHSA-98vm-qgxx-5rjm

In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to a…

Published Jul 16, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh2 1.9.0-1 —
Debian 13 libssh2 1.9.0-1 —
Debian 12 libssh2 1.9.0-1 —
Debian 10 libssh2 1.8.0-2.1+deb10u1 DLA-3559-1
Debian 9 libssh2 1.7.0-1+deb9u2 DLA-2848-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 libssh2 1.4.3-4.1+deb8u4 DLA-1730-3
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libssh2 No fix yet —
Ubuntu Pro 18.04 LTS libssh2 No fix yet —
Ubuntu Pro 16.04 LTS libssh2 1.5.0-2ubuntu0.1+esm1 USN-5308-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS libssh2 1.4.3-2ubuntu0.2+esm2 —
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh2 1.9.0-r0 —
Alpine v3.23 libssh2 1.9.0-r0 —
Alpine v3.22 libssh2 1.9.0-r0 —
Alpine v3.21 libssh2 1.9.0-r0 —
Alpine v3.20 libssh2 1.9.0-r0 —
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libssh2 1.9.0-r0 —
Alpine v3.18 libssh2 1.9.0-r0 —
Alpine v3.17 libssh2 1.9.0-r0 —
Alpine v3.16 libssh2 1.9.0-r0 —
Alpine v3.15 libssh2 1.9.0-r0 —
Alpine v3.14 libssh2 1.9.0-r0 —
Alpine v3.13 libssh2 1.9.0-r0 —
Alpine v3.12 libssh2 1.9.0-r0 —
Alpine v3.11 libssh2 1.9.0-r0 —
Alpine v3.10 libssh2 1.9.0-r0 —
Alpine v3.9 libssh2 1.9.0-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References