{"id":"UBUNTU-CVE-2019-17498","details":"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.","modified":"2026-04-22T12:13:37.688843Z","published":"2019-10-21T22:15:00Z","related":["USN-5308-1"],"upstream":["CVE-2019-17498"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-17498"},{"type":"REPORT","url":"https://blog.semmle.com/libssh2-integer-overflow-CVE-2019-17498/"},{"type":"REPORT","url":"https://github.com/kevinbackhouse/SecurityExploits/tree/8cbdbbe6363510f7d9ceec685373da12e6fc752d/libssh2/out_of_bounds_read_disconnect_CVE-2019-17498"},{"type":"REPORT","url":"https://github.com/libssh2/libssh2/blob/42d37aa63129a1b2644bf6495198923534322d64/src/packet.c#L480"},{"type":"REPORT","url":"https://github.com/libssh2/libssh2/pull/402/commits/1c6fa92b77e34d089493fe6d3e2c6c8775858b94"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5308-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-17498"}],"affected":[{"package":{"name":"libssh2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libssh2@1.4.3-2ubuntu0.2+esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.3-2ubuntu0.2+esm2"}]}],"versions":["1.4.3-1","1.4.3-2","1.4.3-2ubuntu0.1","1.4.3-2ubuntu0.2","1.4.3-2ubuntu0.2+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libssh2-1","binary_version":"1.4.3-2ubuntu0.2+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17498.json"}},{"package":{"name":"libssh2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libssh2@1.5.0-2ubuntu0.1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.0-2ubuntu0.1+esm1"}]}],"versions":["1.5.0-2","1.5.0-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libssh2-1","binary_version":"1.5.0-2ubuntu0.1+esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17498.json"}},{"package":{"name":"libssh2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libssh2@1.8.0-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-1","1.8.0-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.0-1ubuntu0.1","binary_name":"libssh2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17498.json"}},{"package":{"name":"libssh2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libssh2@1.8.0-2.1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-2.1build1","1.8.0-2.1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libssh2-1","binary_version":"1.8.0-2.1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17498.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}