Integer Overflow or Wraparound Affecting libssh2 package, versions <1.9.0-r1
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE38-LIBSSH2-474567
- published 21 Oct 2019
- disclosed 21 Oct 2019
- credit Unknown
Introduced: 21 Oct 2019
CVE-2019-17498 Open this link in a new tabHow to fix?
Upgrade Alpine:3.8
libssh2
to version 1.9.0-r1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream libssh2
package and not the libssh2
package as distributed by Alpine
.
See How to fix?
for Alpine:3.8
relevant fixed versions and status.
The SSH_MSG_DISCONNECT
logic in packet.c
has an integer overflow in a bounds check, enabling an attacker to specify an arbitrary (out-of-bounds) offset for a subsequent memory read. A crafted 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.
References
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22H4Q5XMGS3QNSA7OCL3U7UQZ4NXMR5O/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TY7EEE34RFKCTXTMBQQWWSLXZWSCXNDB/
- https://github.com/kevinbackhouse/SecurityExploits/tree/8cbdbbe6363510f7d9ceec685373da12e6fc752d/libssh2/out_of_bounds_read_disconnect_CVE-2019-17498
- https://github.com/libssh2/libssh2/pull/402/commits/1c6fa92b77e34d089493fe6d3e2c6c8775858b94
- https://github.com/libssh2/libssh2/blob/42d37aa63129a1b2644bf6495198923534322d64/src/packet.c#L480
- https://github.com/libssh2/libssh2/commit/dedcbd106f8e52d5586b0205bc7677e4c9868f9c
- https://lists.debian.org/debian-lts-announce/2019/11/msg00010.html
- https://blog.semmle.com/libssh2-integer-overflow-CVE-2019-17498/
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00026.html