CVE-2019-17498
libssh2: integer overflow in SSH_MSG_DISCONNECT logic in packet.c
Overview
Description
In libssh2 v1.9.0 and earlier versions, 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.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Weakness: CWE-190
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | LibSSH2_jll | <1.10.1+0 | 1.10.1+0 |
Open a package to see all its vulnerabilities.
Operating systems · 22 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | libssh2 +2 | 1.8.0-4.el7 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nmap +1 | 7.91-5.ph4 |
Red Hat 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | libssh2 +2 | 0:1.8.0-4.el7 | RHSA-2020:3915 |
| 8 (virt:8.0) | libssh2 +2 | wont fix | — |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libssh2-1 +2 | 1.4.3-20.14.1 | SUSE-SU-2019:2936-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | libssh2 | 1.9.0-r1 |
| 3.23 | libssh2 | 1.9.0-r1 |
| 3.24 | libssh2 | 1.9.0-r1 |
| edge | libssh2 | 1.9.0-r1 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | libssh2 | 1.8.0-2.1+deb10u1 |
| 11 | libssh2 | 1.9.0-1 |
| 12 | libssh2 | 1.9.0-1 |
| 13 | libssh2 | 1.9.0-1 |
| 14 | libssh2 | 1.9.0-1 |
| 9 | libssh2 | 1.7.0-1+deb9u2 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libssh2 | 1.9.0-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libssh2-1 +2 | 1.9.0-3.6 | openSUSE-SU-2024:10999-1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-libssh2 | 1.9.0-1 |
| 13 | rootio-libssh2 | 1.9.0-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | libssh2 +1 | 1.8.0-4.el7_9.1+sp999 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | libssh2 | affected |
| 20.04-ESM | libssh2 | affected |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00026.html
- packetstormsecurity.com http://packetstormsecurity.com/files/172835/libssh2-1.9.0-Out-Of-Bounds-Read.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-17498
- blog.semmle.com https://blog.semmle.com/libssh2-integer-overflow-CVE-2019-17498/
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- github.com https://github.com/kevinbackhouse/SecurityExploits/tree/8cbdbbe6363510f7d9ceec685373da12e6fc752d/libssh2/out_of_bounds_read_disconnect_CVE-2019-17498
- github.com https://github.com/libssh2/libssh2/blob/42d37aa63129a1b2644bf6495198923534322d64/src/packet.c#L480
- github.com https://github.com/libssh2/libssh2/commit/dedcbd106f8e52d5586b0205bc7677e4c9868f9c
- github.com https://github.com/libssh2/libssh2/pull/402/commits/1c6fa92b77e34d089493fe6d3e2c6c8775858b94
- linux.oracle.com https://linux.oracle.com/cve/CVE-2019-17498.html
Show all 20 references
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2020-3915.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2019/11/msg00010.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/12/msg00013.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/09/msg00006.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22H4Q5XMGS3QNSA7OCL3U7UQZ4NXMR5O/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TY7EEE34RFKCTXTMBQQWWSLXZWSCXNDB/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-17498
- security.netapp.com https://security.netapp.com/advisory/ntap-20220909-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-5308-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-17498
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.