Integer overflow in libssh2 (Alpine package)



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2019-13115
CWE-ID CWE-190
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
IBM Tivoli Storage Manager
Server applications / File servers (FTP/HTTP)

libssh2 (Alpine package)
Operating systems & Components / Operating system package or component

Vendor IBM Corporation
Alpine Linux Development Team

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Integer overflow

EUVDB-ID: #VU19258

Risk: Medium

CVSSv4.0: 6.2 [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 - Integer overflow

Exploit availability: Yes

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.


Mitigation

Install update from vendor's website.

Vulnerable software versions

IBM Tivoli Storage Manager: 7.1.4.1

libssh2 (Alpine package): 2.11-6

libssh2 (Alpine package): 3.5.22-7

libssh2 (Alpine package): 2.0.4.1

libssh2 (Alpine package): 20090404-1

libssh2 (Alpine package): 1.20130917-1 - 1.20131003-1

libssh2 (Alpine package): 2.9

libssh2 (Alpine package): 0.5.8-0ubuntu1

libssh2 (Alpine package): 1.68

libssh2 (Alpine package): 2.0.43 - 5.0.4

libssh2 (Alpine package): 1.5.28ubuntu1

libssh2 (Alpine package): 2.2.1-4 - 2.2.1-46-g10887d272-2

libssh2 (Alpine package): 5 - 9

libssh2 (Alpine package): 8.20-3ubuntu2 - 8.21-1ubuntu2

libssh2 (Alpine package): 7.5.2

libssh2 (Alpine package): 10.0

libssh2 (Alpine package): 9.0.2.881

libssh2 (Alpine package): 7.0.3

libssh2 (Alpine package): 2007

libssh2 (Alpine package):

libssh2 (Alpine package): before 1.9.0-r0

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=d33ef701a0f9572919bab33d45f26a7e53ddb156
https://git.alpinelinux.org/aports/commit/?id=db43cc6825c1432f1f003c621cee428ba844860f
https://git.alpinelinux.org/aports/commit/?id=7e5d7dd70d3c19875845f534826625d7071f222d
https://git.alpinelinux.org/aports/commit/?id=abdf2ab6d79a67fd9049354e301836e75be57fce
https://git.alpinelinux.org/aports/commit/?id=eb32016b72283ff74dce8fb3cc88dd08388e5c7d
https://git.alpinelinux.org/aports/commit/?id=f5dad6eecb361cad9925f93fb5731a369e1e0687
https://git.alpinelinux.org/aports/commit/?id=21ea819c6bacbd5db33f986891363128655a77e1
https://git.alpinelinux.org/aports/commit/?id=67790854e429c3bc73b13862d83ae4ce21b38f98
https://git.alpinelinux.org/aports/commit/?id=9c414d1b72c4b7778b41503b5d9d4cc448a6a5c5


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

How the attacker can exploit this vulnerability?

The attacker would have to send a specially crafted request to the affected application in order to exploit this vulnerability.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###